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

allowNonPublicAccessors does not work with ObjectAccessor #12

Open
GoogleCodeExporter opened this issue Oct 15, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

Here is your code
As you can see allowNonPublicAccessors is not used

    /// <summary>
    /// Wraps an individual object, allowing by-name access to that instance
    /// 
    /// </summary>
    public static ObjectAccessor Create(object target, bool allowNonPublicAccessors)
    {
      if (target == null)
        throw new ArgumentNullException("target");
      IDynamicMetaObjectProvider target1 = target as IDynamicMetaObjectProvider;
      if (target1 != null)
        return (ObjectAccessor) new ObjectAccessor.DynamicWrapper(target1);
      else
        return (ObjectAccessor) new ObjectAccessor.TypeAccessorWrapper(target, TypeAccessor.Create(target.GetType()));
    }

Original issue reported on code.google.com by [email protected] on 28 Nov 2014 at 3:20

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

No branches or pull requests

1 participant