Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling in Visual Studio 2017? #30

Open
BenCat07 opened this issue Jun 5, 2017 · 1 comment
Open

Compiling in Visual Studio 2017? #30

BenCat07 opened this issue Jun 5, 2017 · 1 comment

Comments

@BenCat07
Copy link

BenCat07 commented Jun 5, 2017

"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException" in Visual Studio 2017 on compiling the 3ds module due to this snippet of code:
`namespace LibEveryFileExplorer
{
public class StaticDynamic : DynamicObject
{
private Type _type;
public StaticDynamic(Type type) { _type = type; }

	// Handle static properties
	public override bool TryGetMember(GetMemberBinder binder, out object result)
	{
		PropertyInfo prop = _type.GetProperty(binder.Name, BindingFlags.FlattenHierarchy | BindingFlags.Static | BindingFlags.Public);
		if (prop == null)
		{
			result = null;
			return false;
		}

		result = prop.GetValue(null, null);
		return true;
	}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@BenCat07 and others