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 );
		}
示例#2
0
        public AssemblyBuilderCodeGenerationContext(SerializationContext context, AssemblyBuilder assemblyBuilder)
        {
            this._context         = context;
            this._assemblyBuilder = assemblyBuilder;

            DefaultSerializationMethodGeneratorManager.SetUpAssemblyBuilderAttributes(assemblyBuilder, false);
            this._generatorManager = SerializationMethodGeneratorManager.Get(assemblyBuilder);
        }
示例#3
0
        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);
        }
示例#4
0
        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>();
        }
示例#5
0
 /// <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));
 }
示例#6
0
 /// <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));
 }