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
Commit
b46fed03
authored
Oct 12, 2014
by
Vinicius Jarina
Browse files
[WinRT] Fixed GetMethod in WinRT.
parent
016d601e
Changes
4
Show 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
/// Extends the System.Type-type to search for a given extended MethodeName.
/// </summary>
/// <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
)
{
var
mi
=
from
methode
in
t
.
GetExtensionMethods
(
assemblies
)
...
...
@@ -254,6 +254,7 @@ namespace NLua.Extensions
}
#if NETFX_CORE
// Missing Reflection methods from WinRT
public
const
BindingFlags
Default
=
BindingFlags
.
Public
|
BindingFlags
.
Static
|
BindingFlags
.
Instance
;
...
...
Core/NLua/Metatables.cs
View file @
b46fed03
...
...
@@ -649,12 +649,12 @@ namespace NLua
}
else
if
(!
implicitStatic
)
{
#if NETFX_CORE
var
typeInfo
=
member
as
TypeInfo
;
if
(!
typeInfo
.
IsPublic
&&
!
typeInfo
.
IsNotPublic
)
{
if
(
typeInfo
!=
null
&&
!
typeInfo
.
IsPublic
&&
!
typeInfo
.
IsNotPublic
)
{
#else
if
(
member
.
MemberType
==
MemberTypes
.
NestedType
)
{
#endif
// kevinh - added support for finding nested types
// kevinh - added support for finding nested types
-
// cache us
if
(
cachedMember
==
null
)
SetMemberCache
(
memberCache
,
objType
,
methodName
,
member
);
...
...
Core/NLua/NLua.WP8.csproj
View file @
b46fed03
...
...
@@ -9,7 +9,7 @@
<ProjectGuid>
{1E72B073-2154-4329-BC8D-94F19F91C945}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
NLua
.WP8
</RootNamespace>
<RootNamespace>
NLua
</RootNamespace>
<AssemblyName>
NLua.WP8
</AssemblyName>
<DefaultLanguage>
en-US
</DefaultLanguage>
<TargetPlatformVersion>
8.1
</TargetPlatformVersion>
...
...
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