当前位置: 首页>>代码示例>>C#>>正文


C# IReflectClass.GetName方法代码示例

本文整理汇总了C#中IReflectClass.GetName方法的典型用法代码示例。如果您正苦于以下问题:C# IReflectClass.GetName方法的具体用法?C# IReflectClass.GetName怎么用?C# IReflectClass.GetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IReflectClass的用法示例。


在下文中一共展示了IReflectClass.GetName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NewUserClassMeta

		private ClassInfo NewUserClassMeta(IReflectClass claxx)
		{
			ClassInfo classMeta = ClassInfo.NewUserClass(claxx.GetName());
			classMeta.SetSuperClass(MapSuperclass(claxx));
			RegisterClassMeta(claxx.GetName(), classMeta);
			classMeta.SetFields(MapFields(claxx.GetDeclaredFields(), ShouldStoreTransientFields
				(claxx)));
			return classMeta;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:9,代码来源:ClassInfoHelper.cs

示例2: GetClassMeta

		public virtual ClassInfo GetClassMeta(IReflectClass claxx)
		{
			if (IsObjectClass(claxx))
			{
				return ClassInfo.NewSystemClass(claxx.GetName());
			}
			ClassInfo existing = LookupClassMeta(claxx.GetName());
			if (existing != null)
			{
				return existing;
			}
			return NewUserClassMeta(claxx);
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:13,代码来源:ClassInfoHelper.cs

示例3: ThrowUnsupportedAdd

 private void ThrowUnsupportedAdd(IReflectClass runtimeAncestor)
 {
     throw new InvalidOperationException("Unsupported class hierarchy change. Class "
                                         + runtimeAncestor.GetName() + " was added to hierarchy of " +
                                         _runtimeClass.GetName
                                             ());
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:HierarchyAnalyzer.cs

示例4: QConClass

		internal QConClass(Transaction trans, QCon parent, QField field, IReflectClass claxx
			) : base(trans, parent, field, null)
		{
			// C/S
			if (claxx != null)
			{
				ObjectContainerBase container = trans.Container();
				_classMetadata = container.ClassMetadataForReflectClass(claxx);
				if (_classMetadata == null)
				{
					// could be an aliased class, try to resolve.
					string className = claxx.GetName();
					string aliasRunTimeName = container.Config().ResolveAliasStoredName(className);
					if (!className.Equals(aliasRunTimeName))
					{
						_classMetadata = container.ClassMetadataForName(aliasRunTimeName);
					}
				}
				if (claxx.Equals(container._handlers.IclassObject))
				{
					_classMetadata = (ClassMetadata)_classMetadata.TypeHandler();
				}
			}
			_claxx = claxx;
		}
开发者ID:erdincay,项目名称:db4o,代码行数:25,代码来源:QConClass.cs

示例5: NameOf

 private static TypeName NameOf(IReflectClass typeToFind)
 {
     var name = TypeNameParser.ParseString(typeToFind.GetName());
     if (typeToFind.IsArray() && !name.ArrayOf.HasValue)
     {
         return TypeName.CreateArrayOf(name, 1);
     }
     return name;
 }
开发者ID:gamlerhart,项目名称:db4opad,代码行数:9,代码来源:MetaDataReader.cs

示例6: Resolve

        public IType Resolve(IReflectClass klass)
        {
            if (klass == null)
            {
                return null;
            }

            string className = klass.GetName();
            if (!_resolved.ContainsKey(className))
            {
                _resolved[className] = new TypeImpl(klass, this);
            }
            return _resolved[className];

        }
开发者ID:Galigator,项目名称:db4o,代码行数:15,代码来源:Reflection.cs

示例7: CallConstructorSpecialized

		private TernaryBool CallConstructorSpecialized(IReflectClass clazz)
		{
			Config4Class clazzConfig = _config.ConfigClass(clazz.GetName());
			if (clazzConfig != null)
			{
				TernaryBool res = clazzConfig.CallConstructor();
				if (!res.IsUnspecified())
				{
					return res;
				}
			}
			if (Platform4.IsEnum(_config.Reflector(), clazz))
			{
				return TernaryBool.No;
			}
			IReflectClass ancestor = clazz.GetSuperclass();
			if (ancestor != null)
			{
				return CallConstructorSpecialized(ancestor);
			}
			return TernaryBool.Unspecified;
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:22,代码来源:ReflectorConfigurationImpl.cs

示例8: ClassMetadataForReflectClass

		public override ClassMetadata ClassMetadataForReflectClass(IReflectClass claxx)
		{
			ClassMetadata classMetadata = base.ClassMetadataForReflectClass(claxx);
			if (classMetadata != null)
			{
				return classMetadata;
			}
			string className = Config().ResolveAliasRuntimeName(claxx.GetName());
			if (ClassMetadataIdForName(className) == 0)
			{
				return null;
			}
			return ProduceClassMetadata(claxx);
		}
开发者ID:Galigator,项目名称:db4o,代码行数:14,代码来源:ClientObjectContainer.cs

示例9: ObjectNotStorableException

 public ObjectNotStorableException(IReflectClass clazz) : base(Messages
     .Get(clazz.IsImmutable() ? 59 : 45, clazz.GetName()))
 {
 }
开发者ID:masroore,项目名称:db4o,代码行数:4,代码来源:ObjectNotStorableException.cs

示例10: ShouldStoreTransientFields

		private bool ShouldStoreTransientFields(IReflectClass claxx)
		{
			Config4Class configClass = _config.ConfigClass(claxx.GetName());
			return configClass == null ? false : configClass.StoreTransientFields();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:5,代码来源:ClassInfoHelper.cs

示例11: ReadClassMetadata

		private ClassMetadata ReadClassMetadata(IReflectClass reflectClazz)
		{
			ClassMetadata clazz = (ClassMetadata)_classMetadataByBytes.Remove(GetNameBytes(reflectClazz
				.GetName()));
			if (clazz == null)
			{
				return null;
			}
			return ReadClassMetadata(clazz, reflectClazz);
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:10,代码来源:ClassMetadataRepository.cs

示例12: ObjectNotStorableException

		public ObjectNotStorableException(IReflectClass a_class) : base(Db4objects.Db4o.Internal.Messages
			.Get(a_class.IsPrimitive() ? 59 : 45, a_class.GetName()))
		{
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:4,代码来源:ObjectNotStorableException.cs

示例13: ObjectNotStorableException

		public ObjectNotStorableException(IReflectClass clazz) : base(Db4objects.Db4o.Internal.Messages
			.Get(clazz.IsSimple() ? 59 : 45, clazz.GetName()))
		{
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:4,代码来源:ObjectNotStorableException.cs

示例14: EnsureDelegate

 internal virtual GenericClass EnsureDelegate(IReflectClass
     clazz)
 {
     if (clazz == null)
     {
         return null;
     }
     var claxx = (GenericClass
         ) _repository.LookupByName(clazz.GetName());
     if (claxx == null)
     {
         //  We don't have to worry about the superclass, it can be null
         //  because handling is delegated anyway
         claxx = GenericClass(clazz);
         _repository.Register(claxx);
     }
     return claxx;
 }
开发者ID:masroore,项目名称:db4o,代码行数:18,代码来源:GenericReflector.cs

示例15: Prototype

			public Prototype(Prototypes _enclosing, IReflectClass claxx)
			{
				this._enclosing = _enclosing;
				this._object = (object)claxx.NewInstance();
				if (this._object == null)
				{
					throw new PrototypesException("Prototype could not be created for class " + claxx
						.GetName());
				}
				this.Analyze(this._object, claxx, this._enclosing._recursionDepth, null);
			}
开发者ID:erdincay,项目名称:db4o,代码行数:11,代码来源:Prototypes.cs


注:本文中的IReflectClass.GetName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。