Error CS1002: ; Expected -- I have a semicolon. :(
Posted
by Joshua
on Stack Overflow
See other posts from Stack Overflow
or by Joshua
Published on 2010-06-13T23:13:02Z
Indexed on
2010/06/13
23:22 UTC
Read the original article
Hit count: 1942
c#
Trying to create a new instance of the "MortgageData" object.
Professor said to use:
ClassName InstanceName = New ClassName(arg1, arg2, arg3, arg4);
I Used
MortgageData somethingsomething = New MortgageData(ID,principal,apr,term);
Keep getting Error CS1002: ; Expected with the class name after new underlined in red. I'm using visual studio 2008.
Not sure what to do.
© Stack Overflow or respective owner