Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

C# field class, values access modifier

Rank

Total Posts: 3

Joined 2013-09-17

PM


Hi,

I was getting errors using the decode sample application when I referenced the fit.dll instead of including the classes directly in the project. I was getting an error on the values list of the Field class. I found out that I had to change the access modifier from internal to public on 'values' in the Field class:

internal List<object> values = new List<object>();

to

public List<object> values = new List<object>();

and recompile the dll.

'internal' is only for assembly scope and only accessible from code in the same dll

gtz

     
RankRankRank

Total Posts: 91

Joined 2012-10-12

PM

-Thanks for pointing this out. I updated the decode example to use the existing access functions rather than internal members.

ShaneP      
Rank

Total Posts: 1

Joined 2015-06-03

PM

More about.....Access Specifiers

Biden