internal static void Refresh() { #if !SILVERLIGHT _canCollect = new DefaultSerializationMethodGeneratorManager( false, true, null ); _canDump = new DefaultSerializationMethodGeneratorManager( true, false, null ); #endif _fast = new DefaultSerializationMethodGeneratorManager( false, false, null ); }
public AssemblyBuilderCodeGenerationContext(SerializationContext context, AssemblyBuilder assemblyBuilder) { this._context = context; this._assemblyBuilder = assemblyBuilder; DefaultSerializationMethodGeneratorManager.SetUpAssemblyBuilderAttributes(assemblyBuilder, false); this._generatorManager = SerializationMethodGeneratorManager.Get(assemblyBuilder); }
internal static void Refresh() { #if !SILVERLIGHT _canCollect = new DefaultSerializationMethodGeneratorManager(false, true, null); _canDump = new DefaultSerializationMethodGeneratorManager(true, false, null); #endif _fast = new DefaultSerializationMethodGeneratorManager(false, false, null); }
public AssemblyBuilderCodeGenerationContext(SerializationContext context, AssemblyBuilder assemblyBuilder, SerializerAssemblyGenerationConfiguration configuration) { this._context = context; this._assemblyBuilder = assemblyBuilder; DefaultSerializationMethodGeneratorManager.SetUpAssemblyBuilderAttributes(assemblyBuilder, false); this._generatorManager = SerializationMethodGeneratorManager.Get(assemblyBuilder); this._directory = configuration.OutputDirectory; this._generatedSerializers = new List <SerializerSpecification>(); }
/// <summary> /// Get the dumpable <see cref="SerializationMethodGeneratorManager"/> with specified brandnew assembly builder. /// </summary> /// <param name="assemblyBuilder">An assembly builder which will store all generated types.</param> /// <returns> /// The appropriate <see cref="SerializationMethodGeneratorManager"/> to generate pre-cimplied serializers. /// This value will not be <c>null</c>. /// </returns> public static SerializationMethodGeneratorManager Get(AssemblyBuilder assemblyBuilder) { return(DefaultSerializationMethodGeneratorManager.Create(assemblyBuilder)); }
/// <summary> /// Get the dumpable <see cref="SerializationMethodGeneratorManager"/> with specified brandnew assembly builder. /// </summary> /// <param name="assemblyBuilder">An assembly builder which will store all generated types.</param> /// <returns> /// The appropriate <see cref="SerializationMethodGeneratorManager"/> to generate pre-cimplied serializers. /// This value will not be <c>null</c>. /// </returns> public static SerializationMethodGeneratorManager Get(System.Reflection.Emit.AssemblyBuilder assemblyBuilder) { return(DefaultSerializationMethodGeneratorManager.Create(assemblyBuilder)); }