예제 #1
0
        public ITypeSpecBuilder LoadSpecification(Type type)
        {
            if (type == null)
            {
                throw new NakedObjectSystemException("cannot load specification for null");
            }

            return((ITypeSpecBuilder)metamodel.GetSpecification(type, true) ?? LoadSpecificationAndCache(type));
        }
 public ITypeSpecBuilder LoadSpecification(Type type)
 {
     Assert.AssertNotNull(type);
     return((ITypeSpecBuilder)metamodel.GetSpecification(type, true) ?? LoadSpecificationAndCache(type));
 }
예제 #3
0
 public virtual IObjectSpecBuilder LoadSpecification(Type type)
 {
     Assert.AssertNotNull(type);
     return((IObjectSpecBuilder)metamodel.GetSpecification(type) ?? LoadSpecificationAndCache(type));
 }