Skip to content

Instantly share code, notes, and snippets.

@PaloMraz
Created February 10, 2025 13:19
Show Gist options
  • Select an option

  • Save PaloMraz/c005731413ea9cc753689bf00353bed4 to your computer and use it in GitHub Desktop.

Select an option

Save PaloMraz/c005731413ea9cc753689bf00353bed4 to your computer and use it in GitHub Desktop.
using System;
class Person
{
public string Name
{
get;
set
{
field = value ?? throw new ArgumentNullException(nameof(value));
}
} = "";
}
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;
}
}
}
{
"version": 1,
"target": "C#",
"mode": "Debug"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment