Show / Hide Table of Contents

Class InteropRegistrationPolicy

Collection of the standard policies to handle UserData type registrations. Provided mostly for compile-time backward compatibility with old code. See also : .

Inheritance
System.Object
InteropRegistrationPolicy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class InteropRegistrationPolicy

Properties

Automatic

Types are automatically registered if not found in the registry. This is easier to use but potentially unsafe.

Declaration
public static IRegistrationPolicy Automatic { get; }
Property Value
IRegistrationPolicy

Default

The default registration policy used by MoonSharp unless explicitely replaced. Deregistrations are allowed, but registration of a new descriptor are not allowed if a descriptor is already registered for that type.

Types must be explicitly registered.

Declaration
public static IRegistrationPolicy Default { get; }
Property Value
IRegistrationPolicy

Explicit

The default registration policy used by MoonSharp unless explicitely replaced. Deregistrations are allowed, but registration of a new descriptor are not allowed if a descriptor is already registered for that type.

Types must be explicitly registered.

Declaration
public static IRegistrationPolicy Explicit { get; }
Property Value
IRegistrationPolicy

Back to top Built by Itinero, MIT licensed.