Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetDiff"/> class.
 /// </summary>
 /// <param name="baseAsset">The base asset.</param>
 /// <param name="asset1">The asset1.</param>
 /// <param name="asset2">The asset2.</param>
 public AssetDiff(Asset baseAsset, Asset asset1, Asset asset2)
 {
     // TODO handle some null values (no asset2....etc.)
     this.baseAsset        = baseAsset;
     this.asset1           = asset1;
     this.asset2           = asset2;
     this.equalityComparer = new NodeEqualityComparer(this);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetDiff"/> class.
 /// </summary>
 /// <param name="baseAsset">The base asset.</param>
 /// <param name="asset1">The asset1.</param>
 /// <param name="asset2">The asset2.</param>
 public AssetDiff(object baseAsset, object asset1, object asset2)
 {
     // TODO handle some null values (no asset2....etc.)
     this.baseAsset        = baseAsset;
     this.asset1           = asset1;
     this.asset2           = asset2;
     this.equalityComparer = new NodeEqualityComparer(this);
     CustomVisitorsBase    = new List <IDataCustomVisitor>();
     CustomVisitorsAsset1  = new List <IDataCustomVisitor>();
     CustomVisitorsAsset2  = new List <IDataCustomVisitor>();
 }