次のヘルパー静的クラスを持つ
internal static class Helper
{
internal static class Properties
{
internal static class P1
{
public const string set1 = "abcd"
public const string set2 = "abdc"
}
internal static class P2
{
public const string set3 = "rbcd"
public const string set4 = "vbdc"
}
}
}
次のメソッドを持つ
GetSettings(string value)
{
...
}
これは次のように呼び出すことができます:
GetSettings(Helper.Properties.P2.set3);
また、GetSettings メソッド内で set3 の親クラスの名前にアクセスしたいと思います。したがって、set3 の値が「rbcd」であることだけでなく、名前「P2」、「プロパティ」、「ヘルパー」もわかります。しかし、これを行う方法がわかりません。アイデアや提案はありますか?