Inheritance: IDescriptorProxy
        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);
            }
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
        }