Inheritance: IDescriptorProxy
コード例 #1
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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: DescriptorProxy.cs プロジェクト: chris-tomich/Glyma
        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);
        }