FormatterServices

FormatterServices

System.Runtime.Serialization (mscorlib.dll) sealed class

The methods of this sealed class provide some background functionality to a formatter when serializing and deserializing objects. For example, GetObjectData( ) creates an array of System.Reflection.MemberInfo object data. GetSerializableMembers( ) retrieves all the serializable members of a given class. PopulateObjectMembers( ) is the basic deserialization method, using a MemberInfo array of member names and an array of corresponding data values to repopulate a specified object.

 public sealed class  FormatterServices  {  // Public Static Methods  public static void  CheckTypeSecurity  (Type   t   ,          System.Runtime.Serialization.Formatters.TypeFilterLevel   securityLevel   );    public static object[ ]  GetObjectData  (object   obj   , System.Reflection.MemberInfo[ ]   members   );    public static object  GetSafeUninitializedObject  (Type   type   );    public static MemberInfo[ ]  GetSerializableMembers  (Type   type   );    public static MemberInfo[ ]  GetSerializableMembers  (Type   type   , StreamingContext   context   );    public static Type  GetTypeFromAssembly  (System.Reflection.Assembly   assem   , string   name   );    public static object  GetUninitializedObject  (Type   type   );    public static object  PopulateObjectMembers  (object   obj   , System.Reflection.MemberInfo[ ]   members   ,          object[ ]   data   ); } 


C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net