Horje
c# print all property values of object Code Example
c# print all property values of object
public static string PropertyList(this object obj)
{
  var props = obj.GetType().GetProperties();
  var sb = new StringBuilder();
  foreach (var p in props)
  {
    sb.AppendLine(p.Name + ": " + p.GetValue(obj, null));
  }
  return sb.ToString();
}




Csharp

Related
c# read binary file Code Example c# read binary file Code Example
how to edit Camera.size property unity Code Example how to edit Camera.size property unity Code Example
c# get last two characters of string Code Example c# get last two characters of string Code Example
asp.net throw unauthorized exception Code Example asp.net throw unauthorized exception Code Example
c# check if string is directory Code Example c# check if string is directory Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12