chore: clean recommit
This commit is contained in:
parent
8024c6ac40
commit
60ad2e7fb1
122 changed files with 23950 additions and 323 deletions
17
Examples/ExcludeFromBrowserAttribute.cs
Normal file
17
Examples/ExcludeFromBrowserAttribute.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Examples;
|
||||
|
||||
/// <summary>
|
||||
/// Marks an <see cref="IExample"/> that is omitted from the browser host (Web/Host.cs)
|
||||
/// because of a wasm/WebGL platform limitation. Desktop runs are unaffected.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
||||
public sealed class ExcludeFromBrowserAttribute : Attribute
|
||||
{
|
||||
/// <summary>Why the example cannot run in the browser.</summary>
|
||||
public string Reason { get; }
|
||||
|
||||
public ExcludeFromBrowserAttribute(string reason = null)
|
||||
{
|
||||
Reason = reason;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue