i am displaying version(WrmVersion) value in a listview ,,but here i given one codition means if version(WrmVersion) is null i am displaying \'None\'(ResourcePolicyAvailSystems
Well, what is the protection level of ResourcePolicyAvailSystemsLVI.m_nullString
? And where is your code in relation? It will be inaccessible if, for example
private
and you're in an unrelated classprotected
and you're not in a subclassinternal
and you're in a different assembly without [InternalsVisibleTo]
protected internal
and both of the two above applyTo be honest, it looks like a field, and fields generally aren't public
- so it wouldn't amaze me if somebody has changed the accessibility, perhaps adding a public static property to wrap it - or simply changed the name (although that would give a different error). Try looking for ResourcePolicyAvailSystemsLVI.NullString
or similar (in intellisense / object-browser).
Re your comment; you have:
private static string m_nullString =
Managers.ControlStrings.GetString("ManagedDeviceWizard.None");
so just add:
public static string NullString {get {return m_nullString;}}
and change your calling code to use ResourcePolicyAvailSystemsLVI.NullString
.