Sign in to follow this  
Daniel Miller

[.net] Strange C# rule?

Recommended Posts

Hmmm. Is (Type) really the type you're casting... meaning is this the exact code? If it is, there is no publicField property or member in the System.Type class to assign the value to. This could be your problem. Otherwise, if you have created a class that they Type represents and the publicField is really a public field, there might be another issue.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this