コード例 #1
0
 public PathStep(int elementIndex, Type strongListElementType, bool isArray)
 {
     this.StepType                = isArray ? PathStepType.ArrayElement : PathStepType.StrongListElement;
     this.Member                  = null;
     this.ElementIndex            = elementIndex;
     this.ElementType             = strongListElementType;
     this.StrongListGetItemMethod = typeof(IList <>).MakeGenericType(strongListElementType).GetMethod("get_Item");
 }
コード例 #2
0
 public PathStep(int elementIndex)
 {
     this.StepType                = PathStepType.WeakListElement;
     this.Member                  = null;
     this.ElementIndex            = elementIndex;
     this.ElementType             = null;
     this.StrongListGetItemMethod = null;
 }
コード例 #3
0
 public PathStep(MemberInfo member)
 {
     this.StepType                = PathStepType.Member;
     this.Member                  = member;
     this.ElementIndex            = -1;
     this.ElementType             = null;
     this.StrongListGetItemMethod = null;
 }
コード例 #4
0
 public PathStep(IVMPropertyDescriptor property)
     : this()
 {
     _type     = PathStepType.Property;
     _property = property;
 }
コード例 #5
0
 public PathStep(IVMCollection collection)
     : this()
 {
     _type       = PathStepType.Collection;
     _collection = collection;
 }
コード例 #6
0
 public PathStep(IViewModel viewModel)
     : this()
 {
     _type      = PathStepType.ViewModel;
     _viewModel = viewModel;
 }