Talk:ReflectedObject
From Unify Community Wiki
Nice little helper class but wouldn't it be much easier to use a generic function instead of those seperate TryGetField... functions?
<csharp>
public T TryGetField<T>(string fieldName, ref T result) { if (GetFieldType(fieldName) == typeof(T)) { result = (T)GetFieldValue(fieldName); return true; } return false; }
</csharp>
--Bunny83 16:10, 15 July 2011 (PDT)