public RegisterType ( |
||
type | ||
Résultat | string |
public string RegisterType(Type type)
{
if (type == null) throw new ArgumentNullException(nameof(type));
var name = Type2NameRegistry.FindNameByType(type);
if (name != null) return name;
name = type.Name;
if (type.IsInterface && name.StartsWith("I", StringComparison.Ordinal)) name = name.Substring(1);
return RegisterType(type, name);
}
ObjectDB::RegisterType ( |
TableInfo AutoRegisterType(Type type) { var ti = _owner.TablesInfo.FindByType(type); if (ti == null) { var name = _owner.Type2NameRegistry.FindNameByType(type) ?? _owner.RegisterType(type); ti = _owner.TablesInfo.LinkType2Name(type, name); } return(ti); }