Beispiel #1
0
        /// <summary>
        /// creates objects with parameters in their constructors
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="assemblyLocation"></param>
        /// <returns></returns>
        public static List <dynamic> CreateAndInitializeProperties(string fileName, string assemblyLocation)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateAndInitializeProperties(aMap, assemblyLocation));
        }
Beispiel #2
0
        /// <summary>
        /// No parameters in constructor
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="anAssembly"></param>
        /// <returns></returns>
        public static List <Tuple <String, String, object> > CreateObjectAndRunMethodsNoParams(string fileName, Assembly anAssembly)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateObjectAndRunMethodsNoParams(aMap, anAssembly, null));
        }
Beispiel #3
0
        public static List <Tuple <String, String, object> > CreateObjectInitializeFieldsAndRunMethods(string fileName, Assembly anAssembly)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateObjectInitializeFieldsAndRunMethods(aMap, anAssembly));
        }
Beispiel #4
0
        /// <summary>
        /// No paramters in constuctor
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="anAssembly"></param>
        /// <returns></returns>
        private static List <Tuple <String, String, object> > CreateInitializePropertiesFieldsAndRunMethodsWoParams(string fileName, Assembly anAssembly)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateInitializePropertiesFieldsAndRunMethodsWoParams(aMap, anAssembly));
        }
Beispiel #5
0
        /// <summary>
        /// creates objects without parameters in their constructors
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="assemblyLocation"></param>
        /// <returns></returns>
        public static List <dynamic> CreateAndInitializePropertiesWoParams(string fileName, Assembly anAssembly)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateAndInitializeProperties(aMap, anAssembly, null));
        }
Beispiel #6
0
        //creates objects and initializes fields wiht paramters in constructor
        public static List <dynamic> CreateAndInitializeFields(string fileName, Assembly anAssembly)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateAndInitializeFields(aMap, anAssembly));
        }