18 using System.Collections.Generic;
22 namespace Deveel.Data.Types {
28 : this(typeName, null) {
33 throw new ArgumentNullException(
"typeName");
36 ParentType = parentType;
38 memberNamesCache =
new Dictionary<string, UserTypeMember>();
43 public bool IsSealed {
get; set; }
48 get {
return members[offset]; }
53 if (!memberNamesCache.TryGetValue(name, out member)) {
54 foreach (var typeMember
in members) {
55 if (typeMember.MemberName.Equals(name, StringComparison.OrdinalIgnoreCase)) {
56 memberNamesCache[typeMember.MemberName] = typeMember;
67 for (
int i = 0; i < members.Count; i++) {
68 var typeMember = members[i];
69 if (typeMember.MemberName.Equals(name, StringComparison.OrdinalIgnoreCase)) {
82 get {
return TypeName; }
UserTypeInfo(ObjectName typeName, ObjectName parentType)
UserTypeMember FindMember(string name)
readonly Dictionary< string, UserTypeMember > memberNamesCache
Describes the name of an object within a database.
List< UserTypeMember > members
UserTypeInfo(ObjectName typeName)
int IndexOfMember(string name)
DbObjectType
The kind of objects that can be handled by a database system and its managers