示例#1
0
 protected override Instantiation ConvertInstantiationToCanonForm(Instantiation instantiation, CanonicalFormKind kind, out bool changed)
 {
     if (CanonMode == CanonicalizationMode.Standard)
     {
         return(StandardCanonicalizationAlgorithm.ConvertInstantiationToCanonForm(instantiation, kind, out changed));
     }
     else
     {
         return(RuntimeDeterminedCanonicalizationAlgorithm.ConvertInstantiationToCanonForm(instantiation, kind, out changed));
     }
 }
示例#2
0
 protected override TypeDesc ConvertToCanon(TypeDesc typeToConvert, ref CanonicalFormKind kind)
 {
     if (CanonMode == CanonicalizationMode.Standard)
     {
         return(StandardCanonicalizationAlgorithm.ConvertToCanon(typeToConvert, kind));
     }
     else
     {
         return(RuntimeDeterminedCanonicalizationAlgorithm.ConvertToCanon(typeToConvert, ref kind));
     }
 }
 protected internal override TypeDesc ConvertToCanon(TypeDesc typeToConvert, CanonicalFormKind kind)
 {
     return(StandardCanonicalizationAlgorithm.ConvertToCanon(typeToConvert, kind));
 }
 protected internal override Instantiation ConvertInstantiationToCanonForm(Instantiation instantiation, CanonicalFormKind kind, out bool changed)
 {
     return(StandardCanonicalizationAlgorithm.ConvertInstantiationToCanonForm(instantiation, kind, out changed));
 }