Created
January 2, 2017 17:36
-
-
Save guglielmino/79f454ec06f5477215fb83e0f08201ef to your computer and use it in GitHub Desktop.
devquiz
This file contains 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
public class NewClass { | |
private string _property { get; set; } | |
public NewClass(string s){ | |
this._property = s; | |
} | |
public static implicit operator NewClass(string s){ | |
return new NewClass(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment