Interface IGenericTypeProvider
This interface must be implemented by the component that wants to provide generic types for multiple parameters.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface IGenericTypeProvider
Methods
CheckIfSerializable(Type, FieldInfo)
Provide custom implementation of this method to return true or false on the basis of whether you want to serialize the specific FieldInfo of specific type.
Declaration
bool CheckIfSerializable(Type type, FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Represents type declarations. |
System.Reflection.FieldInfo | fieldInfo | Describes the attributes of a field and provides access to field metadata. |
Returns
Type | Description |
---|---|
System.Boolean | Boolean value, true or false. |
GetGenericTypes()
Client has to provide the implementation of this method, and has to fill the array with the desired generic types and return it back.
Declaration
Type[] GetGenericTypes()
Returns
Type | Description |
---|---|
System.Type[] | Represents type declarations. |