28
1
using System;
2
using System.Linq;
3
using System.Reflection;
4
5
public class Program
6
{
7
public struct CommUser
8
{
9
public static string pcUSER_URI_R97
10
{
11
get;
12
set;
13
}
14
15
public static string pcUSER_URI_R98
16
{
17
get;
18
set;
19
}
20
}
21
22
public static void Main()
23
{
24
var names = typeof (CommUser).GetProperties(BindingFlags.Static | BindingFlags.Public).Select(x => x.Name);
25
foreach (var name in names)
26
Console.WriteLine(name);
27
}
28
}
Cached Result