Commit b46fed03 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

[WinRT] Fixed GetMethod in WinRT.

parent 016d601e
Subproject commit 7a399dfb907bca3288018c462c54fe2dd637baf6
Subproject commit d310fed28bda8c6c59a0d9fd5893e1a0d8dbde7f
......@@ -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 Methode 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;
......
......@@ -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);
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment