Пример #1
0
        protected override TypeDesc ConvertToCanon(TypeDesc typeToConvert, ref CanonicalFormKind kind)
        {
            if (_genericsMode == SharedGenericsMode.CanonicalReferenceTypes)
                return RuntimeDeterminedCanonicalizationAlgorithm.ConvertToCanon(typeToConvert, ref kind);

            Debug.Assert(_genericsMode == SharedGenericsMode.Disabled);
            return typeToConvert;
        }
Пример #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));
     }
 }
Пример #3
0
 protected override TypeDesc ConvertToCanon(TypeDesc typeToConvert, ref CanonicalFormKind kind)
 {
     return(RuntimeDeterminedCanonicalizationAlgorithm.ConvertToCanon(typeToConvert, ref kind));
 }