What I will say is probably you need to write the code as:
// Your code
public string Nome {
get; set;}
public string Idade {
get; set;}
// New code
Using System.Runtime.CompilerServices;
public string Nome { [CompilerGenerated]get; [CompilerGenerated]set;}
public string Idade { [CompilerGenerated]get; [CompilerGenerated]set;}
Regards,
Soumen, India
Budhi Hin Tanu Janike, Sumirau Pavan Kumar
Bal budhi Vidya dehu mohe,Harahu Kalesa Vikar
[My Site: WCF, My Site and Silverlight site @ Silverlight version].
Rimbik
Participant
1359 Points
382 Posts
Re: must declare a body because it is not marked abstract or extern
Apr 03, 2009 11:36 AM|LINK
What I will say is probably you need to write the code as:
// Your code
public string Nome { get; set;}public string Idade { get; set;}
// New code
Using System.Runtime.CompilerServices;
public string Nome { [CompilerGenerated]get; [CompilerGenerated]set;}public string Idade { [CompilerGenerated]get; [CompilerGenerated]set;}
Regards,
Soumen, India
Bal budhi Vidya dehu mohe,Harahu Kalesa Vikar
[My Site: WCF, My Site
and Silverlight site @ Silverlight version].
sqlclient
Member
2 Points
1 Post
Re: must declare a body because it is not marked abstract or extern
May 15, 2009 10:22 AM|LINK
change compiler settings in web.config file as following;
<system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"> <providerOption name="CompilerVersion" value="v3.5" /> <providerOption name="WarnAsError" value="false" /> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"> <providerOption name="CompilerVersion" value="v3.5" /> <providerOption name="OptionInfer" value="true" /> <providerOption name="WarnAsError" value="false" /> </compiler> </compilers> </system.codedom>web.config
http://cemsisman.com
http://twitter.com/cemsisman