public static GetReaderPrimitive ( |
||
type | ||
Результат |
public void GetStaticMethods(Type type, out MethodInfo writer, out MethodInfo reader) { var containerType = typeof(Primitives); writer = Primitives.GetWritePrimitive(type); reader = Primitives.GetReaderPrimitive(type); }
public MethodInfo GetStaticReader(Type type) { Debug.Assert(type.IsEnum); var underlyingType = Enum.GetUnderlyingType(type); return(Primitives.GetReaderPrimitive(underlyingType)); }
public object Deserialize(Serializer serializer, Type staticType, Stream stream) { MethodInfo method = Primitives.GetReaderPrimitive(staticType); object[] parameters = new object[] { stream, null }; method.Invoke(null, parameters); // return out parameter return(parameters[1]); }
public void GetStaticMethods(Type type, out MethodInfo writer, out MethodInfo reader) { Debug.Assert(type.IsEnum); var underlyingType = Enum.GetUnderlyingType(type); writer = Primitives.GetWritePrimitive(underlyingType); reader = Primitives.GetReaderPrimitive(underlyingType); }
public MethodInfo GetStaticReader(Type type) { #if !NET35 && !NET40 Debug.Assert(type.GetTypeInfo().IsEnum); #else Debug.Assert(type.IsEnum); #endif var underlyingType = Enum.GetUnderlyingType(type); return(Primitives.GetReaderPrimitive(underlyingType)); }
public MethodInfo GetStaticReader(Type type) { return(Primitives.GetReaderPrimitive(type)); }
public void GetStaticMethods(Type type, out MethodInfo writer, out MethodInfo reader) { writer = Primitives.GetWritePrimitive(type); reader = Primitives.GetReaderPrimitive(type); }