S
shapper
Hello,
I am defining a read only property that when the user access it gets a
SelectList generated by a method:
public SelectList Targets { get { return Asset.Targets(); } }
I get the error:
The modifier 'readonly' is not valid for this item
What am I doing wrong?
In VB.NET I should add ReadOnly but in C# I think I don't need to do
this.
Thanks,
Miguel
I am defining a read only property that when the user access it gets a
SelectList generated by a method:
public SelectList Targets { get { return Asset.Targets(); } }
I get the error:
The modifier 'readonly' is not valid for this item
What am I doing wrong?
In VB.NET I should add ReadOnly but in C# I think I don't need to do
this.
Thanks,
Miguel