How to compare properties of a c开发者_如何转开发lass with columns in excel sheet ?
i dont know how to get the columns of an excel sheet, but i am sure, thats very simple (i never did this till now).
To retrieve the properties of a class, you can use the GetProperties method of the type:
foreach (var propertyInfo in this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public))
{
Console.WriteLine(propertyInfo.Name);
}
cherio, Chris
精彩评论