Partager via


SerializerGenerator Classe

Définition

Générateur de code qui génère des sérialiseurs. Exemple de sérialiseur généré : [global::System.CodeDom.Compiler.GeneratedCodeAttribute(« Orleans-CodeGenerator », « 2.0.0.0 »), global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, global::Orleans. Classe sealed interne CodeGeneration.SerializerAttribute(typeof(global::MyType))] OrleansCodeGenUnitTests_GrainInterfaces_MyTypeSerializer { private readonly global::System.Func<global::MyType, global::System.Int32> getField0; private readonly global::System.Action<global::MyType, global::System.Int32> setField0; public OrleansCodeGenUnitTests_GrainInterfaces_MyTypeSerializer(global::Orleans. Serialization.IFieldUtils fieldUtils) { [...] } [global::Orleans. CodeGeneration.CopierMethodAttribute] public global::System.Object DeepCopier(global::System.Object original, global::Orleans. Serialization.ICopyContext context) { [...] } [global::Orleans. CodeGeneration.SerializerMethodAttribute] public void Serializer(global::System.Object untypedInput, global::Orleans. Contexte Serialization.ISerializationContext, global::System.Type attendu) { [...] } [global::Orleans. CodeGeneration.DeserializerMethodAttribute] public global::System.Object Deserializer(global::System.Type expected, global::Orleans. Serialization.IDeserializationContext context) { [...] } }

public static class SerializerGenerator
type SerializerGenerator = class
Public Class SerializerGenerator
Héritage
SerializerGenerator

S’applique à