C# 클래스 XamlBrewer.UWP.MoonSharpSample.Views.CSharpFunctionPage

Shows how to expose C# methods to a Lua script, and call these.
상속: Windows.UI.Xaml.Controls.Page
파일 보기 프로젝트 열기: XamlBrewer/UWP-Lua-Scripting-Sample

공개 메소드들

메소드 설명
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