コード例 #1
0
 // Merge two blocks into one
 public void Merge(Block other)
 {
     if (!CanMerge(other))
     {
         throw new ApplicationException("Can't merge the two blocks!");
     }
     Append(other);
     other.DisconnectFromFallThroughAndTargets();
     other.Parent = null;
 }
コード例 #2
0
ファイル: Block.cs プロジェクト: GreenDamTan/de4dot
		// Merge two blocks into one
		public void Merge(Block other) {
			if (!CanMerge(other))
				throw new ApplicationException("Can't merge the two blocks!");
			Append(other);
			other.DisconnectFromFallThroughAndTargets();
			other.Parent = null;
		}