dotnet-core/release-notes/1.0/1.0.0-api/1.0.0-api_System.Reflection.Context.md

19 lines
1.1 KiB
Markdown
Raw Normal View History

2017-07-05 23:24:38 +02:00
# System.Reflection.Context
``` diff
+namespace System.Reflection.Context {
+ public abstract class CustomReflectionContext : ReflectionContext {
+ protected CustomReflectionContext();
+ protected CustomReflectionContext(ReflectionContext source);
+ protected virtual IEnumerable<PropertyInfo> AddProperties(Type type);
+ protected PropertyInfo CreateProperty(Type propertyType, string name, Func<object, object> getter, Action<object, object> setter);
+ protected PropertyInfo CreateProperty(Type propertyType, string name, Func<object, object> getter, Action<object, object> setter, IEnumerable<Attribute> propertyCustomAttributes, IEnumerable<Attribute> getterCustomAttributes, IEnumerable<Attribute> setterCustomAttributes);
+ protected virtual IEnumerable<object> GetCustomAttributes(MemberInfo member, IEnumerable<object> declaredAttributes);
+ protected virtual IEnumerable<object> GetCustomAttributes(ParameterInfo parameter, IEnumerable<object> declaredAttributes);
+ public override Assembly MapAssembly(Assembly assembly);
+ public override TypeInfo MapType(TypeInfo type);
+ }
+}
```