-
-
Save PaloMraz/c005731413ea9cc753689bf00353bed4 to your computer and use it in GitHub Desktop.
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
| using System; | |
| class Person | |
| { | |
| public string Name | |
| { | |
| get; | |
| set | |
| { | |
| field = value ?? throw new ArgumentNullException(nameof(value)); | |
| } | |
| } = ""; | |
| } | |
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
| using System; | |
| using System.Diagnostics; | |
| using System.Reflection; | |
| using System.Runtime.CompilerServices; | |
| using System.Security; | |
| using System.Security.Permissions; | |
| [assembly: CompilationRelaxations(8)] | |
| [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | |
| [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue | DebuggableAttribute.DebuggingModes.DisableOptimizations)] | |
| [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | |
| [assembly: AssemblyVersion("0.0.0.0")] | |
| [module: UnverifiableCode] | |
| [module: RefSafetyRules(11)] | |
| [NullableContext(1)] | |
| [Nullable(0)] | |
| internal class Person | |
| { | |
| [CompilerGenerated] | |
| [DebuggerBrowsable(DebuggerBrowsableState.Never)] | |
| private string <Name>k__BackingField = ""; | |
| public string Name | |
| { | |
| [CompilerGenerated] | |
| get | |
| { | |
| return <Name>k__BackingField; | |
| } | |
| set | |
| { | |
| if (value == null) | |
| { | |
| throw new ArgumentNullException("value"); | |
| } | |
| <Name>k__BackingField = value; | |
| } | |
| } | |
| } |
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
| { | |
| "version": 1, | |
| "target": "C#", | |
| "mode": "Debug" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment