/// <summary> /// Constructor which requires a <see cref="TypeSystem"/> instance as a parameter. /// </summary> /// <param name="typeSystem">A <see cref="TypeSystem"/> instance</param> public TypeDomainFactory(TypeSystem typeSystem) { if (typeSystem == null) throw new ArgumentNullException("typeSystem"); _typeSystem = typeSystem; }
/// <summary> /// Constructor which take as an argument a TypeSystem instance. /// </summary> /// <param name="typeSystem"></param> public TypeSystemBuilder(TypeSystem typeSystem) { if (typeSystem == null) throw new ArgumentNullException("typeSystem"); _typeSystem = typeSystem; }
/// <summary> /// Constructor /// </summary> /// <param name="treeModel"></param> /// <param name="typeSystem"></param> public DomainModelContext(IDomainModel treeModel, TypeSystem.TypeSystem typeSystem) { _treeModel = treeModel; _typeSystem = typeSystem; _typeDomainFactory = new TypeDomainFactory(_typeSystem); }
/// <summary> /// Constructor which take as an argument a type system name. /// </summary> /// <param name="typeSystemName"></param> public TypeSystemBuilder(string typeSystemName) { // the argument check is made by the TypeSystem constructor _typeSystem = new TypeSystem(typeSystemName); }