Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# loop class properties add to array

Record record = new Record();

PropertyInfo[] properties = typeof(Record).GetProperties();
foreach (PropertyInfo property in properties)
{
    property.SetValue(record, value);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #class #properties #add #array
ADD COMMENT
Topic
Name
7+8 =