Last active
December 18, 2015 03:19
-
-
Save zgramana/5717827 to your computer and use it in GitHub Desktop.
makes copy ctor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// References: | |
// - MyPreviouslyAdded.dll | |
// - MyGacced.dll | |
// Imports: | |
// - My.Namespace.Bitches | |
// - My.Other.Namespace | |
P("public Version(Version item)"); | |
P("{"); | |
var t = typeof(Version); | |
var props = t.GetProperties(); | |
foreach(var prop in props) | |
{ | |
P(" this.{0} = item.{0};", prop.Name); | |
} | |
P("}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configure namespace usings and assm refs via YAML in the header comments.