B
Brett Romero
if I have a public static property such as:
//Class1
public class Class1
{
public static Dictionary<string, string> Prop1{...}
public static Dictionary<string, string> Prop2{...}
}
//SomeClass
public class SomeClass
{
public SomeClass ( CustomDictionary<string, string> pdict )
{//get name of pdict here}
}
// usage
SomeClass myProp1 = new SomeClass( Class1.Prop1 );
How can I get the name of pdict in SomeClass()? Meaning, I want a
string containing "Prop1".
Thanks,
Brett
//Class1
public class Class1
{
public static Dictionary<string, string> Prop1{...}
public static Dictionary<string, string> Prop2{...}
}
//SomeClass
public class SomeClass
{
public SomeClass ( CustomDictionary<string, string> pdict )
{//get name of pdict here}
}
// usage
SomeClass myProp1 = new SomeClass( Class1.Prop1 );
How can I get the name of pdict in SomeClass()? Meaning, I want a
string containing "Prop1".
Thanks,
Brett