/// <summary> /// This constructor is only used if DynamicPropWrapper is inherited. /// </summary> public DynamicPropWrapper() { mInstance = this; mDynamicTypeDescriptor = new DynamicTypeDescriptor(mPropertySortType, mInstance, true); }
/// <summary> /// ALWAYS USE this constructor when wrapping a class. /// </summary> /// <param name="instance">The object whose properties are to be filtered.</param> public DynamicPropWrapper(object instance) { mInstance = instance; mDynamicTypeDescriptor = new DynamicTypeDescriptor(mPropertySortType, mInstance, false); }