Skip to content

Instantly share code, notes, and snippets.

Created May 16, 2017 17:36
Show Gist options
  • Save anonymous/94916521b381246ff9874297b5e2ec7b to your computer and use it in GitHub Desktop.
Save anonymous/94916521b381246ff9874297b5e2ec7b to your computer and use it in GitHub Desktop.
namespace NewEditor
{
// OPTION 1 - SEPARATE CLONE METHOD
public class DtdsDuctSegmentItem
{
// Blank initalizer for Clone() method.
// This does nothing in production code at moment.
internal DtdsDuctSegmentItem()
{
}
internal DtdsDuctSegmentItem Clone()
{
DtdsDuctSegmentItem rtnItem = new DtdsDuctSegmentItem();
// Do Stuff.
return rtnItem;
}
}
// INITALIZER THAT DOES CLONING.
public class DtdsDuctSegmentItem
{
internal DtdsDuctSegmentItem(DtdsDuctSegmentItem itemToClone)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment