C# Класс XamlBrewer.UWP.MoonSharpSample.Views.CSharpFunctionPage

Shows how to expose C# methods to a Lua script, and call these.
Наследование: Windows.UI.Xaml.Controls.Page
Показать файл Открыть проект

Открытые методы

Метод Описание
CSharpFunctionPage ( ) : MoonSharp.Interpreter
Reverse ( string tobereversed ) : string

Method with return type that will be exposed to the script.

No, it doesn't have to be static.

Say ( string message ) : void

void Method that will be exposed to the script.

Yes, it's async.

Приватные методы

Метод Описание
Button_Click ( object sender, RoutedEventArgs e ) : void

Описание методов

CSharpFunctionPage() публичный Метод

public CSharpFunctionPage ( ) : MoonSharp.Interpreter
Результат MoonSharp.Interpreter

Reverse() публичный статический Метод

Method with return type that will be exposed to the script.
No, it doesn't have to be static.
public static Reverse ( string tobereversed ) : string
tobereversed string
Результат string

Say() публичный статический Метод

void Method that will be exposed to the script.
Yes, it's async.
public static Say ( string message ) : void
message string
Результат void