Exemple #1
0
        // Token: 0x06000E1E RID: 3614 RVA: 0x0005192C File Offset: 0x0004FB2C
        public static string GetTypeName(Type t, TypeNameAssemblyFormatHandling assemblyFormat, [Nullable(2)] ISerializationBinder binder)
        {
            string fullyQualifiedTypeName = ReflectionUtils.GetFullyQualifiedTypeName(t, binder);

            if (assemblyFormat == TypeNameAssemblyFormatHandling.Simple)
            {
                return(ReflectionUtils.RemoveAssemblyDetails(fullyQualifiedTypeName));
            }
            if (assemblyFormat != TypeNameAssemblyFormatHandling.Full)
            {
                throw new ArgumentOutOfRangeException();
            }
            return(fullyQualifiedTypeName);
        }