コード例 #1
0
ファイル: MetadataHelpersTests.cs プロジェクト: peg4d/bench
 private static void DecodeTypeNameAndVerify(
     string nameToDecode,
     string expectedTopLevelType,
     string expectedAssemblyName  = null,
     string[] expectedNestedTypes = null,
     MetadataHelpers.AssemblyQualifiedTypeName[] expectedTypeArguments = null,
     int[] expectedArrayRanks = null)
 {
     MetadataHelpers.AssemblyQualifiedTypeName decodedName = MetadataHelpers.DecodeTypeName(nameToDecode);
     VerifyDecodedTypeName(decodedName, expectedTopLevelType, expectedAssemblyName, expectedNestedTypes, expectedTypeArguments, expectedArrayRanks);
 }
コード例 #2
0
 private static void DecodeTypeNameAndVerify(
     MetadataHelpers.SerializedTypeDecoder decoder,
     string nameToDecode,
     string expectedTopLevelType,
     string expectedAssemblyName = null,
     string[] expectedNestedTypes = null,
     MetadataHelpers.AssemblyQualifiedTypeName[] expectedTypeArguments = null,
     int[] expectedArrayRanks = null)
 {
     MetadataHelpers.AssemblyQualifiedTypeName decodedName = decoder.DecodeTypeName(nameToDecode);
     VerifyDecodedTypeName(decodedName, expectedTopLevelType, expectedAssemblyName, expectedNestedTypes, expectedTypeArguments, expectedArrayRanks);
 }