public string SerializedType(string providerName, Type type) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); Verify.ArgumentNotNull(type, "type"); ITypeManagerTypeHandler typeManagerTypeHandler = GetTypeManagerTypeHandler(providerName); return(typeManagerTypeHandler.SerializeType(type)); }
public bool HasTypeWithName(string providerName, string typeFullname) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); Verify.ArgumentNotNullOrEmpty(typeFullname, "typeFullname"); ITypeManagerTypeHandler typeManagerTypeHandler = GetTypeManagerTypeHandler(providerName); return(typeManagerTypeHandler.HasTypeWithName(typeFullname)); }
public Type GetType(string providerName, string fullName) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); Verify.ArgumentNotNullOrEmpty(fullName, "fullName"); ITypeManagerTypeHandler typeManagerTypeHandler = GetTypeManagerTypeHandler(providerName); return(typeManagerTypeHandler.GetType(fullName)); }
private static ITypeManagerTypeHandler GetTypeManagerTypeHandler(string providerName) { Resources resources = GetResources(); return(resources.TypeHandlerCache.GetOrAdd(providerName, provider => { ITypeManagerTypeHandler typeHandler = resources.Factory.Create(provider); return typeHandler; })); }