Gericom/EveryFileExplorer

Compiling in Visual Studio 2017?

Opened this issue · 0 comments

"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;
	}

`