コード例 #1
0
ファイル: LexRelation.cs プロジェクト: vkarthim/libpalaso
        public IPalasoDataObjectProperty Clone()
        {
            var clone = new LexRelationCollection();

            clone._relations = new List <LexRelation>(_relations);
            return(clone);
        }
コード例 #2
0
ファイル: LexEntry.cs プロジェクト: vkarthim/libpalaso
        public void AddRelationTarget(string relationName, string targetId)
        {
            LexRelationCollection relations =
                GetOrCreateProperty <LexRelationCollection>(relationName);

            relations.Relations.Add(new LexRelation(relationName, targetId, this));
        }
コード例 #3
0
ファイル: LexRelation.cs プロジェクト: vkarthim/libpalaso
 public bool Equals(LexRelationCollection other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (!_relations.SequenceEqual(other._relations))
     {
         return(false);
     }
     return(true);
 }