public RelationshipProxy(SoapRelationship soapRelationship) : this() { BaseSoapRelationship = soapRelationship; foreach (KeyValuePair<SoapDescriptorType, Guid> nodeDescriptorPair in BaseSoapRelationship.Nodes) { DescriptorProxy descriptor = new DescriptorProxy(nodeDescriptorPair.Value, nodeDescriptorPair.Key, this, BaseSoapRelationship); Descriptors.Add(descriptor); } }
public RelationshipProxy(SoapRelationship soapRelationship) : this() { BaseSoapRelationship = soapRelationship; foreach (KeyValuePair <SoapDescriptorType, Guid> nodeDescriptorPair in BaseSoapRelationship.Nodes) { DescriptorProxy descriptor = new DescriptorProxy(nodeDescriptorPair.Value, nodeDescriptorPair.Key, this, BaseSoapRelationship); Descriptors.Add(descriptor); } }
public override bool Equals(object obj) { DescriptorProxy secondObj = obj as DescriptorProxy; if (secondObj != null) { if (this.Relationship.Id == secondObj.Relationship.Id && this.DescriptorType.Id == secondObj.DescriptorType.Id && this.NodeId == secondObj.NodeId) { return(true); } } return(false); }