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"); }
public PathStep(int elementIndex) { this.StepType = PathStepType.WeakListElement; this.Member = null; this.ElementIndex = elementIndex; this.ElementType = null; this.StrongListGetItemMethod = null; }
public PathStep(MemberInfo member) { this.StepType = PathStepType.Member; this.Member = member; this.ElementIndex = -1; this.ElementType = null; this.StrongListGetItemMethod = null; }
public PathStep(IVMPropertyDescriptor property) : this() { _type = PathStepType.Property; _property = property; }
public PathStep(IVMCollection collection) : this() { _type = PathStepType.Collection; _collection = collection; }
public PathStep(IViewModel viewModel) : this() { _type = PathStepType.ViewModel; _viewModel = viewModel; }