Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
b46fed03
"LuaInterface.Test/vscode:/vscode.git/clone" did not exist on "2a7bdd795ca6b0ebaa3ce39df3cbe9f08e1e9dfb"
Commit
b46fed03
authored
Oct 12, 2014
by
Vinicius Jarina
Browse files
[WinRT] Fixed GetMethod in WinRT.
parent
016d601e
Changes
4
Hide whitespace changes
Inline
Side-by-side
KeraLua
@
d310fed2
Compare
7a399dfb
...
d310fed2
Subproject commit
7a399dfb907bca3288018c462c54fe2dd637baf6
Subproject commit
d310fed28bda8c6c59a0d9fd5893e1a0d8dbde7f
Core/NLua/Extensions/GeneralExtensions.cs
View file @
b46fed03
...
@@ -169,7 +169,7 @@ namespace NLua.Extensions
...
@@ -169,7 +169,7 @@ namespace NLua.Extensions
/// Extends the System.Type-type to search for a given extended MethodeName.
/// Extends the System.Type-type to search for a given extended MethodeName.
/// </summary>
/// </summary>
/// <param name="MethodeName">Name of the Methode</param>
/// <param name="MethodeName">Name of the Methode</param>
/// <returns>the found Method
e
or null</returns>
/// <returns>the found Method or null</returns>
public
static
MethodInfo
GetExtensionMethod
(
this
Type
t
,
string
name
,
IEnumerable
<
Assembly
>
assemblies
=
null
)
public
static
MethodInfo
GetExtensionMethod
(
this
Type
t
,
string
name
,
IEnumerable
<
Assembly
>
assemblies
=
null
)
{
{
var
mi
=
from
methode
in
t
.
GetExtensionMethods
(
assemblies
)
var
mi
=
from
methode
in
t
.
GetExtensionMethods
(
assemblies
)
...
@@ -254,6 +254,7 @@ namespace NLua.Extensions
...
@@ -254,6 +254,7 @@ namespace NLua.Extensions
}
}
#if NETFX_CORE
#if NETFX_CORE
// Missing Reflection methods from WinRT
public
const
BindingFlags
Default
=
BindingFlags
.
Public
|
BindingFlags
.
Static
|
BindingFlags
.
Instance
;
public
const
BindingFlags
Default
=
BindingFlags
.
Public
|
BindingFlags
.
Static
|
BindingFlags
.
Instance
;
...
...
Core/NLua/Metatables.cs
View file @
b46fed03
...
@@ -649,12 +649,12 @@ namespace NLua
...
@@ -649,12 +649,12 @@ namespace NLua
}
else
if
(!
implicitStatic
)
{
}
else
if
(!
implicitStatic
)
{
#if NETFX_CORE
#if NETFX_CORE
var
typeInfo
=
member
as
TypeInfo
;
var
typeInfo
=
member
as
TypeInfo
;
if
(!
typeInfo
.
IsPublic
&&
!
typeInfo
.
IsNotPublic
)
{
if
(
typeInfo
!=
null
&&
!
typeInfo
.
IsPublic
&&
!
typeInfo
.
IsNotPublic
)
{
#else
#else
if
(
member
.
MemberType
==
MemberTypes
.
NestedType
)
{
if
(
member
.
MemberType
==
MemberTypes
.
NestedType
)
{
#endif
#endif
// kevinh - added support for finding nested types
// kevinh - added support for finding nested types
-
// cache us
// cache us
if
(
cachedMember
==
null
)
if
(
cachedMember
==
null
)
SetMemberCache
(
memberCache
,
objType
,
methodName
,
member
);
SetMemberCache
(
memberCache
,
objType
,
methodName
,
member
);
...
...
Core/NLua/NLua.WP8.csproj
View file @
b46fed03
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"12.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
ToolsVersion=
"12.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Import
Project=
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition=
"Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition=
"Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
<PropertyGroup>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProductVersion>
8.0.30703
</ProductVersion>
<ProductVersion>
8.0.30703
</ProductVersion>
<SchemaVersion>
2.0
</SchemaVersion>
<SchemaVersion>
2.0
</SchemaVersion>
<ProjectGuid>
{1E72B073-2154-4329-BC8D-94F19F91C945}
</ProjectGuid>
<ProjectGuid>
{1E72B073-2154-4329-BC8D-94F19F91C945}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
NLua
.WP8
</RootNamespace>
<RootNamespace>
NLua
</RootNamespace>
<AssemblyName>
NLua.WP8
</AssemblyName>
<AssemblyName>
NLua.WP8
</AssemblyName>
<DefaultLanguage>
en-US
</DefaultLanguage>
<DefaultLanguage>
en-US
</DefaultLanguage>
<TargetPlatformVersion>
8.1
</TargetPlatformVersion>
<TargetPlatformVersion>
8.1
</TargetPlatformVersion>
<MinimumVisualStudioVersion>
12
</MinimumVisualStudioVersion>
<MinimumVisualStudioVersion>
12
</MinimumVisualStudioVersion>
<FileAlignment>
512
</FileAlignment>
<FileAlignment>
512
</FileAlignment>
<ProjectTypeGuids>
{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
<ProjectTypeGuids>
{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
<DebugSymbols>
true
</DebugSymbols>
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|ARM'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|ARM'"
>
<DebugSymbols>
true
</DebugSymbols>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\ARM\Debug\
</OutputPath>
<OutputPath>
bin\ARM\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<NoWarn>
;2008
</NoWarn>
<NoWarn>
;2008
</NoWarn>
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<PlatformTarget>
ARM
</PlatformTarget>
<PlatformTarget>
ARM
</PlatformTarget>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|ARM'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|ARM'"
>
<OutputPath>
bin\ARM\Release\
</OutputPath>
<OutputPath>
bin\ARM\Release\
</OutputPath>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<NoWarn>
;2008
</NoWarn>
<NoWarn>
;2008
</NoWarn>
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<PlatformTarget>
ARM
</PlatformTarget>
<PlatformTarget>
ARM
</PlatformTarget>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x86'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x86'"
>
<DebugSymbols>
true
</DebugSymbols>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\x86\Debug\
</OutputPath>
<OutputPath>
bin\x86\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<NoWarn>
;2008
</NoWarn>
<NoWarn>
;2008
</NoWarn>
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<PlatformTarget>
x86
</PlatformTarget>
<PlatformTarget>
x86
</PlatformTarget>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x86'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x86'"
>
<OutputPath>
bin\x86\Release\
</OutputPath>
<OutputPath>
bin\x86\Release\
</OutputPath>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_PHONE_APP
</DefineConstants>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<NoWarn>
;2008
</NoWarn>
<NoWarn>
;2008
</NoWarn>
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<PlatformTarget>
x86
</PlatformTarget>
<PlatformTarget>
x86
</PlatformTarget>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<ProjectReference
Include=
"..\KeraLua\src\WP8\KeraLua.WP8.csproj"
>
<ProjectReference
Include=
"..\KeraLua\src\WP8\KeraLua.WP8.csproj"
>
<Project>
{1f139ccb-195b-402d-8776-7a15a3e05886}
</Project>
<Project>
{1f139ccb-195b-402d-8776-7a15a3e05886}
</Project>
<Name>
KeraLua.WP8
</Name>
<Name>
KeraLua.WP8
</Name>
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"CheckType.cs"
/>
<Compile
Include=
"CheckType.cs"
/>
<Compile
Include=
"Config\NLuaConfig.cs"
/>
<Compile
Include=
"Config\NLuaConfig.cs"
/>
<Compile
Include=
"Event\DebugHookEventArgs.cs"
/>
<Compile
Include=
"Event\DebugHookEventArgs.cs"
/>
<Compile
Include=
"Event\EventCodes.cs"
/>
<Compile
Include=
"Event\EventCodes.cs"
/>
<Compile
Include=
"Event\EventMasks.cs"
/>
<Compile
Include=
"Event\EventMasks.cs"
/>
<Compile
Include=
"Event\HookExceptionEventArgs.cs"
/>
<Compile
Include=
"Event\HookExceptionEventArgs.cs"
/>
<Compile
Include=
"Exceptions\LuaException.cs"
/>
<Compile
Include=
"Exceptions\LuaException.cs"
/>
<Compile
Include=
"Exceptions\LuaScriptException.cs"
/>
<Compile
Include=
"Exceptions\LuaScriptException.cs"
/>
<Compile
Include=
"Extensions\GeneralExtensions.cs"
/>
<Compile
Include=
"Extensions\GeneralExtensions.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ClassGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ClassGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\CodeGeneration.cs"
/>
<Compile
Include=
"GenerateEventAssembly\CodeGeneration.cs"
/>
<Compile
Include=
"GenerateEventAssembly\DelegateGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\DelegateGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ILuaGeneratedType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ILuaGeneratedType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\LuaClassType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\LuaClassType.cs"
/>
<Compile
Include=
"Lua.cs"
/>
<Compile
Include=
"Lua.cs"
/>
<Compile
Include=
"LuaBase.cs"
/>
<Compile
Include=
"LuaBase.cs"
/>
<Compile
Include=
"LuaFunction.cs"
/>
<Compile
Include=
"LuaFunction.cs"
/>
<Compile
Include=
"LuaGlobalAttribute.cs"
/>
<Compile
Include=
"LuaGlobalAttribute.cs"
/>
<Compile
Include=
"LuaHideAttribute.cs"
/>
<Compile
Include=
"LuaHideAttribute.cs"
/>
<Compile
Include=
"LuaLib\GCOptions.cs"
/>
<Compile
Include=
"LuaLib\GCOptions.cs"
/>
<Compile
Include=
"LuaLib\LuaEnums.cs"
/>
<Compile
Include=
"LuaLib\LuaEnums.cs"
/>
<Compile
Include=
"LuaLib\LuaIndexes.cs"
/>
<Compile
Include=
"LuaLib\LuaIndexes.cs"
/>
<Compile
Include=
"LuaLib\LuaLib.cs"
/>
<Compile
Include=
"LuaLib\LuaLib.cs"
/>
<Compile
Include=
"LuaLib\LuaTypes.cs"
/>
<Compile
Include=
"LuaLib\LuaTypes.cs"
/>
<Compile
Include=
"LuaLib\References.cs"
/>
<Compile
Include=
"LuaLib\References.cs"
/>
<Compile
Include=
"LuaRegistrationHelper.cs"
/>
<Compile
Include=
"LuaRegistrationHelper.cs"
/>
<Compile
Include=
"LuaTable.cs"
/>
<Compile
Include=
"LuaTable.cs"
/>
<Compile
Include=
"LuaUserData.cs"
/>
<Compile
Include=
"LuaUserData.cs"
/>
<Compile
Include=
"Metatables.cs"
/>
<Compile
Include=
"Metatables.cs"
/>
<Compile
Include=
"Method\EventHandlerContainer.cs"
/>
<Compile
Include=
"Method\EventHandlerContainer.cs"
/>
<Compile
Include=
"Method\LuaClassHelper.cs"
/>
<Compile
Include=
"Method\LuaClassHelper.cs"
/>
<Compile
Include=
"Method\LuaDelegate.cs"
/>
<Compile
Include=
"Method\LuaDelegate.cs"
/>
<Compile
Include=
"Method\LuaEventHandler.cs"
/>
<Compile
Include=
"Method\LuaEventHandler.cs"
/>
<Compile
Include=
"Method\LuaMethodWrapper.cs"
/>
<Compile
Include=
"Method\LuaMethodWrapper.cs"
/>
<Compile
Include=
"Method\MethodArgs.cs"
/>
<Compile
Include=
"Method\MethodArgs.cs"
/>
<Compile
Include=
"Method\MethodCache.cs"
/>
<Compile
Include=
"Method\MethodCache.cs"
/>
<Compile
Include=
"Method\RegisterEventHandler.cs"
/>
<Compile
Include=
"Method\RegisterEventHandler.cs"
/>
<Compile
Include=
"ObjectTranslator.cs"
/>
<Compile
Include=
"ObjectTranslator.cs"
/>
<Compile
Include=
"ObjectTranslatorPool.cs"
/>
<Compile
Include=
"ObjectTranslatorPool.cs"
/>
<Compile
Include=
"Platform\BindFlags.cs"
/>
<Compile
Include=
"Platform\BindFlags.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"ProxyType.cs"
/>
<Compile
Include=
"ProxyType.cs"
/>
</ItemGroup>
</ItemGroup>
<PropertyGroup
Condition=
" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0' "
>
<PropertyGroup
Condition=
" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0' "
>
<VisualStudioVersion>
12.0
</VisualStudioVersion>
<VisualStudioVersion>
12.0
</VisualStudioVersion>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(TargetPlatformIdentifier)' == '' "
>
<PropertyGroup
Condition=
" '$(TargetPlatformIdentifier)' == '' "
>
<TargetPlatformIdentifier>
WindowsPhoneApp
</TargetPlatformIdentifier>
<TargetPlatformIdentifier>
WindowsPhoneApp
</TargetPlatformIdentifier>
</PropertyGroup>
</PropertyGroup>
<Import
Project=
"$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
<Target Name="BeforeBuild">
</Target>
</Target>
<Target Name="AfterBuild">
<Target Name="AfterBuild">
</Target>
</Target>
-->
-->
</Project>
</Project>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment