コード例 #1
0
 /// <summary>
 /// This constructor is only used if DynamicPropWrapper is inherited.
 /// </summary>
 public DynamicPropWrapper()
 {
     mInstance = this;
     mDynamicTypeDescriptor = new DynamicTypeDescriptor(mPropertySortType, mInstance, true);
 }
コード例 #2
0
 /// <summary>
 /// This constructor is only used if DynamicPropWrapper is inherited.
 /// </summary>
 public DynamicPropWrapper()
 {
     mInstance = this;
     mDynamicTypeDescriptor = new DynamicTypeDescriptor(mPropertySortType, mInstance, true);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }