wasSharp

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 18  →  ?path2? @ 19
/Reflection.cs
@@ -224,6 +224,18 @@
///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016 Wizardry and Steamworks - License: GNU GPLv3 //
///////////////////////////////////////////////////////////////////////////
/// <summary>Return all the run-time properties for an object.</summary>
/// <param name="o">the object whose properties to return</param>
/// <returns>the property information for all the properties of the object</returns>
public static IEnumerable<PropertyInfo> GetPropertiesInfo<T>(this T o)
{
foreach (var p in o.GetType().GetRuntimeProperties())
yield return p;
}
 
///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016 Wizardry and Steamworks - License: GNU GPLv3 //
///////////////////////////////////////////////////////////////////////////
/// <summary>
/// Enumerate all the base types recursively starting from a type.
/// </summary>