예제 #1
0
 public bool Compare(Assembly obj)
 {
     if (obj == null) throw new ArgumentNullException("obj");
     if (!ClrName.Equals(obj.ClrName)) return false;
     if (!PermissionSet.Equals(obj.PermissionSet)) return false;
     if (!Owner.Equals(obj.Owner)) return false;
     if (!Text.Equals(obj.Text)) return false;
     if (Files.Count != obj.Files.Count) return false;
     for (var j = 0; j < Files.Count; j++)
         if (!Files[j].Content.Equals(obj.Files[j].Content)) return false;
     return true;
 }
예제 #2
0
 public override ISchema Clone()
 {
     var item = new Assembly
     {
         Id = Id,
         Name = Name,
         Owner = Owner,
         Visible = Visible,
         Text = Text,
         PermissionSet = PermissionSet,
         ClrName = ClrName,
         Files = Files
     };
     DependenciesOut.ForEach(dep => item.DependenciesOut.Add(dep));
     ExtendedProperties.ForEach(ep => item.ExtendedProperties.Add(ep));
     return item;
 }