protected override void Context() { base.Context(); _objectUsedInSpecs.OneField = 33; _getHandler = DelegateFactory.CreateGet(ReflectionHelper.AllFieldsFor(typeof(SimpleObject)).First()); }
/// <summary> /// Returns all instance fields define for the type and its base type /// </summary> /// <param name="type"> The <see cref="System.Type" /> to inspect for all the fields</param> /// <returns> /// An Eumeration of <see cref="FieldInfo" /> for each field avaialble in the given <see cref="System.Type" /> /// hierarchy. /// </returns> public static IEnumerable <FieldInfo> AllFields(this Type type) { return(ReflectionHelper.AllFieldsFor(type)); }
protected override void Context() { base.Context(); _setHandler = DelegateFactory.CreateSet(ReflectionHelper.AllFieldsFor(typeof(SimpleObject)).First()); }