Habanero.Smooth.ReflectionClassDefLoader.LoadClassDefs C# (CSharp) Method

LoadClassDefs() public method

Loads one ClassDef for each Type in the ITypeSource.
public LoadClassDefs ( ) : ClassDefCol
return ClassDefCol
        public ClassDefCol LoadClassDefs()
        {
            AllClassesAutoMapper allClassesAutoMapper = new AllClassesAutoMapper(Source);
            return allClassesAutoMapper.Map();
        }
    }

Same methods

ReflectionClassDefLoader::LoadClassDefs ( string classDefsXml ) : ClassDefCol

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Clears the loaded class definitions and reloads them.  Usually this only needs
        /// to be done once per test fixture, except if there are individual tests that
        /// modify the class definitions.
        /// </summary>
        public static void RefreshClassDefs()
        {
            ClassDef.ClassDefs.Clear();
//            ClassDefCol classDefs = new XmlClassDefsLoader(BOBroker.GetClassDefsXml(), new DtdLoader()).LoadClassDefs();
            var assemblyTypeSource = new AssemblyTypeSource(typeof (Car));
            var loader = new ReflectionClassDefLoader(assemblyTypeSource);
            ClassDef.ClassDefs.Add(loader.LoadClassDefs());
        }