| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | using System.Diagnostics.CodeAnalysis; |
| | | 6 | | using System.Reflection; |
| | | 7 | | |
| | | 8 | | namespace System.Text.Json.Serialization.Metadata |
| | | 9 | | { |
| | | 10 | | internal abstract class MemberAccessor |
| | | 11 | | { |
| | | 12 | | public abstract Func<object>? CreateParameterlessConstructor(Type type, ConstructorInfo? constructorInfo); |
| | | 13 | | |
| | | 14 | | public abstract Func<object[], T> CreateParameterizedConstructor<T>(ConstructorInfo constructor); |
| | | 15 | | |
| | | 16 | | public abstract JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>? CreateParameterize |
| | | 17 | | |
| | | 18 | | public abstract Action<TCollection, object?> CreateAddMethodDelegate<[DynamicallyAccessedMembers(DynamicallyAcce |
| | | 19 | | |
| | | 20 | | public abstract Func<IEnumerable<TElement>, TCollection> CreateImmutableEnumerableCreateRangeDelegate<TCollectio |
| | | 21 | | |
| | | 22 | | public abstract Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection> CreateImmutableDictionaryCreateRangeD |
| | | 23 | | |
| | | 24 | | public abstract Func<object, TProperty> CreatePropertyGetter<TProperty>(PropertyInfo propertyInfo); |
| | | 25 | | |
| | | 26 | | public abstract Action<object, TProperty> CreatePropertySetter<TProperty>(PropertyInfo propertyInfo); |
| | | 27 | | |
| | | 28 | | public abstract Func<object, TProperty> CreateFieldGetter<TProperty>(FieldInfo fieldInfo); |
| | | 29 | | |
| | | 30 | | public abstract Action<object, TProperty> CreateFieldSetter<TProperty>(FieldInfo fieldInfo); |
| | | 31 | | |
| | 0 | 32 | | public virtual void Clear() { } |
| | | 33 | | } |
| | | 34 | | } |