Mono.CSharp.SwitchSection.Clone C# (CSharp) Method

Clone() public method

public Clone ( CloneContext clonectx ) : SwitchSection
clonectx CloneContext
return SwitchSection
		public SwitchSection Clone (CloneContext clonectx)
		{
			var cloned_labels = new List<SwitchLabel> ();

			foreach (SwitchLabel sl in Labels)
				cloned_labels.Add (sl.Clone (clonectx));
			
			return new SwitchSection (cloned_labels, clonectx.LookupBlock (Block));
		}
	}