Forum C# Some Benign Reflection

Some Benign Reflection

Postby hangar » October 16th, 2014, 2:56 am

I spent the last few hours getting my server working under reflection restrictions. Ran into a few that seemed benign and was wondering if you'd whitelist them for a future release.

IOException: BinaryFormatter and other core libraries use this one a lot.

System.Diagnostics.ConditionalAttribute: It's a really unique compiler feature and helps automatically strip out logging.

System.AttributeUsageAttribute: Probably got axed since it's not useful at runtime, since you can't query attributes, but we're doing some ahead-of-time code generation and some code sharing with the client that makes this attribute useful. Right now, I have to ifdef them all out.

System.Reflection.MemberInfo::get_Name(): The only instance of this we have access to I think is Type.Name, and that's still useful for debugging.
Posts: 8
Joined: September 16th, 2014, 7:00 am

Return to C#