您好,InputPanel,中的控件都是自动生成,类型名也已经变了,我刚才做了测试,获取的类名是
- vc.GetType()
- {Name = "a" FullName = "C1.Win.C1InputPanel.s+a"}
- Assembly: {C1.Win.C1InputPanel.4, Version=4.0.20171.248, Culture=neutral, PublicKeyToken=79882d576c6336da}
- AssemblyQualifiedName: "C1.Win.C1InputPanel.s+a, C1.Win.C1InputPanel.4, Version=4.0.20171.248, Culture=neutral, PublicKeyToken=79882d576c6336da"
- Attributes: NestedPrivate | BeforeFieldInit
- BaseType: {Name = "TextBoxWithTabHandling" FullName = "C1.Framework.TextBoxElement+TextBoxWithTabHandling"}
- Cache: {System.RuntimeType.RuntimeTypeCache}
- ContainsGenericParameters: false
- CustomAttributes: Count = 0
- DeclaredConstructors: {System.Reflection.ConstructorInfo[1]}
- DeclaredEvents: {System.Reflection.EventInfo[0]}
- DeclaredFields: {System.Reflection.FieldInfo[0]}
- DeclaredMembers: {System.Reflection.MemberInfo[9]}
- DeclaredMethods: {System.Reflection.MethodInfo[8]}
- DeclaredNestedTypes: {System.Reflection.TypeInfo.<get_DeclaredNestedTypes>d__23}
- DeclaredProperties: {System.Reflection.PropertyInfo[0]}
- DeclaringMethod: “((System.RuntimeType)(vc.GetType())).DeclaringMethod”引发了类型“System.InvalidOperationException”的异常
- DeclaringType: {Name = "s" FullName = "C1.Win.C1InputPanel.s"}
- DomainInitialized: false
- ForwardCallBinder: {System.OleAutBinder}
- FullName: "C1.Win.C1InputPanel.s+a"
- GUID: {0cb5df3e-f7ac-3aae-b550-e19fdb61be1b}
- GenericCache: null
- GenericParameterAttributes: “((System.RuntimeType)(vc.GetType())).GenericParameterAttributes”引发了类型“System.InvalidOperationException”的异常
- GenericParameterPosition: “((System.RuntimeType)(vc.GetType())).GenericParameterPosition”引发了类型“System.InvalidOperationException”的异常
- GenericTypeArguments: {System.Type[0]}
- GenericTypeParameters: {System.Type[0]}
- HasElementType: false
- HasProxyAttribute: false
- ImplementedInterfaces: {System.Type[20]}
- InvocationFlags: INVOCATION_FLAGS_INITIALIZED
- IsAbstract: false
- IsAnsiClass: true
- IsArray: false
- IsAutoClass: false
- IsAutoLayout: true
- IsByRef: false
- IsCOMObject: false
- IsClass: true
- IsConstructedGenericType: false
- IsContextful: false
- IsEnum: false
- IsExplicitLayout: false
- IsExportedToWindowsRuntime: false
- IsGenericParameter: false
- IsGenericType: false
- IsGenericTypeDefinition: false
- IsImport: false
- IsInterface: false
- IsLayoutSequential: false
- IsMarshalByRef: true
- IsNested: true
- IsNestedAssembly: false
- IsNestedFamANDAssem: false
- IsNestedFamORAssem: false
- IsNestedFamily: false
- IsNestedPrivate: true
- IsNestedPublic: false
- IsNotPublic: false
- IsPointer: false
- IsPrimitive: false
- IsPublic: false
- IsSealed: false
- IsSecurityCritical: true
- IsSecuritySafeCritical: false
- IsSecurityTransparent: false
- IsSerializable: false
- IsSpecialName: false
- IsSzArray: false
- IsUnicodeClass: false
- IsValueType: false
- IsVisible: false
- IsWindowsRuntimeObject: false
- MemberType: NestedType
- MetadataToken: 33554678
- Module (System.Reflection.MemberInfo): {C1.Win.C1InputPanel.4.dll}
- Module: {C1.Win.C1InputPanel.4.dll}
- Name: "a"
- Namespace: "C1.Win.C1InputPanel"
- NeedsReflectionSecurityCheck: true
- ReflectedType: {Name = "s" FullName = "C1.Win.C1InputPanel.s"}
- RemotingCache: {System.Runtime.Remoting.Metadata.RemotingTypeCachedData}
- StructLayoutAttribute: {System.Runtime.InteropServices.StructLayoutAttribute}
- TypeHandle: {System.RuntimeTypeHandle}
- TypeInitializer: null
- UnderlyingSystemType: {Name = "a" FullName = "C1.Win.C1InputPanel.s+a"}
- m_cache: {1447572}
- m_cachedData: {System.Runtime.Remoting.Metadata.RemotingTypeCachedData}
- m_handle: {92461512}
- m_invocationFlags: INVOCATION_FLAGS_INITIALIZED
- m_keepalive: null
复制代码 ,这个已经被重新构建了,所以可能需要从里面摘取有用的信息。 |