# NonReflectiveAttribute

Kind: Class · Namespace: Sansar.Script · Assembly: Sansar.Script.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Script">Namespace <a href="/scripting/api/sansar.script"><code>Sansar.Script</code></a></span>
<span>Inherits <a href="https://learn.microsoft.com/dotnet/api/system.attribute">Attribute</a></span>
</div>

<span id="T:Sansar.Script.NonReflectiveAttribute"></span>

Prevents methods from being reflected using [`Reflective.AsInterface`](/scripting/api/sansar.script/reflective#asinterface).

```csharp
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Field)]
public class NonReflectiveAttribute : Attribute
```

## Remarks

This can be used at the class level to block all methods or on individual methods or properties methods

## Members at a glance

| Kind | Members |
|---|---|
| **Constructors** | [NonReflectiveAttribute](#nonreflectiveattribute) |

## Constructors

### NonReflectiveAttribute

<div class="api-card">
<span id="M:Sansar.Script.NonReflectiveAttribute.#ctor"></span>
<span id="C:Sansar.Script.NonReflectiveAttribute()"></span>

```csharp signature
public NonReflectiveAttribute()
```

Prevents methods from being reflected using [`Reflective.AsInterface`](/scripting/api/sansar.script/reflective#asinterface).

</div>




<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>