Class PapyrusFunctionRegistrarExtensions
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Provides extension members for IPapyrusFunctionRegistrar.
public static class PapyrusFunctionRegistrarExtensions
- Inheritance
-
PapyrusFunctionRegistrarExtensions
- Inherited Members
Methods
RegisterInstance<TSelf>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?> body) where TSelf : notnull
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf>
Type Parameters
TSelf
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8>
Type Parameters
TSelfT0T1T2T3T4T5T6T7T8
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, TReturn>
Type Parameters
TSelfT0T1T2T3T4T5T6T7TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>
Type Parameters
TSelfT0T1T2T3T4T5T6T7T8T9
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>
Type Parameters
TSelfT0T1T2T3T4T5T6T7T8TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
Type Parameters
TSelfT0T1T2T3T4T5T6T7T8T9T10
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>
Type Parameters
TSelfT0T1T2T3T4T5T6T7T8T9TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
Type Parameters
TSelfT0T1T2T3T4T5T6T7T8T9T10TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?> body) where TSelf : notnull where T0 : notnull
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0>
Type Parameters
TSelfT0
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, TReturn> body) where TSelf : notnull where TReturn : notnull
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, TReturn>
Type Parameters
TSelfTReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?> body) where TSelf : notnull where T0 : notnull where T1 : notnull
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1>
Type Parameters
TSelfT0T1
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, TReturn> body) where TSelf : notnull where T0 : notnull where TReturn : notnull
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, TReturn>
Type Parameters
TSelfT0TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2>
Type Parameters
TSelfT0T1T2
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, TReturn>
Type Parameters
TSelfT0T1TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3>
Type Parameters
TSelfT0T1T2T3
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, TReturn>
Type Parameters
TSelfT0T1T2TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4>
Type Parameters
TSelfT0T1T2T3T4
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, TReturn>
Type Parameters
TSelfT0T1T2T3TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4, T5>
Type Parameters
TSelfT0T1T2T3T4T5
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, TReturn>
Type Parameters
TSelfT0T1T2T3T4TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4, T5, T6>
Type Parameters
TSelfT0T1T2T3T4T5T6
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, T5, TReturn>
Type Parameters
TSelfT0T1T2T3T4T5TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyAction<TSelf, T0, T1, T2, T3, T4, T5, T6, T7>
Type Parameters
TSelfT0T1T2T3T4T5T6T7
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn>)
Registers the implementation of a native instance (non-global) function.
public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarselfClassNamestringfunctionNamestringbodyFunc<TSelf, T0, T1, T2, T3, T4, T5, T6, TReturn>
Type Parameters
TSelfT0T1T2T3T4T5T6TReturn
Remarks
The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
selfClassName,functionName, orbodyisnull.- ArgumentException
selfClassNameorfunctionNameis empty, orTSelfis not a form view.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic(IPapyrusFunctionRegistrar, string, string, Action)
Registers the implementation of a native static (global) function.
public static void RegisterStatic(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0>(IPapyrusFunctionRegistrar, string, string, Action<T0?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?> body) where T0 : notnull
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0>
Type Parameters
T0
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<TReturn> body) where TReturn : notnull
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<TReturn>
Type Parameters
TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>
Type Parameters
T0T1T2T3T4T5T6T7T8T9
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>
Type Parameters
T0T1T2T3T4T5T6T7T8TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
Type Parameters
T0T1T2T3T4T5T6T7T8T9T10
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>
Type Parameters
T0T1T2T3T4T5T6T7T8T9TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
Type Parameters
T0T1T2T3T4T5T6T7T8T9T10TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?> body) where T0 : notnull where T1 : notnull
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1>
Type Parameters
T0T1
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, TReturn> body) where T0 : notnull where TReturn : notnull
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, TReturn>
Type Parameters
T0TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?> body) where T0 : notnull where T1 : notnull where T2 : notnull
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2>
Type Parameters
T0T1T2
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, TReturn> body) where T0 : notnull where T1 : notnull where TReturn : notnull
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, TReturn>
Type Parameters
T0T1TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3>
Type Parameters
T0T1T2T3
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, TReturn>
Type Parameters
T0T1T2TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4>
Type Parameters
T0T1T2T3T4
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, TReturn>
Type Parameters
T0T1T2T3TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4, T5>
Type Parameters
T0T1T2T3T4T5
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, TReturn>
Type Parameters
T0T1T2T3T4TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4, T5, T6>
Type Parameters
T0T1T2T3T4T5T6
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, T5, TReturn>
Type Parameters
T0T1T2T3T4T5TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4, T5, T6, T7>
Type Parameters
T0T1T2T3T4T5T6T7
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, T5, T6, TReturn>
Type Parameters
T0T1T2T3T4T5T6TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyAction<T0, T1, T2, T3, T4, T5, T6, T7, T8>
Type Parameters
T0T1T2T3T4T5T6T7T8
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.
RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn>)
Registers the implementation of a native static (global) function.
public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn> body)
Parameters
registrarIPapyrusFunctionRegistrarclassNamestringfunctionNamestringbodyFunc<T0, T1, T2, T3, T4, T5, T6, T7, TReturn>
Type Parameters
T0T1T2T3T4T5T6T7TReturn
Remarks
A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.
Exceptions
- ArgumentNullException
className,functionName, orbodyisnull.- ArgumentException
classNameorfunctionNameis empty.- TypeInitializationException
Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.
- InvalidOperationException
The function was not registered. The message names the reason.