Skip to content

Instantly share code, notes, and snippets.

@Fusion86
Created April 9, 2024 16:51
Show Gist options
  • Save Fusion86/7095393c2e7d2d3f01490dcdf099ae62 to your computer and use it in GitHub Desktop.
Save Fusion86/7095393c2e7d2d3f01490dcdf099ae62 to your computer and use it in GitHub Desktop.
[assembly: IgnoresAccessChecksTo("SecretProgram")]
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
AssemblyName = assemblyName;
}
public string AssemblyName { get; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment