Skip to content

Compiling in Visual Studio 2017? #30

Description

@LemonatedCat

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

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions