Пример #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));
        }
Пример #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));
        }
Пример #3
0
        public static List <Tuple <String, String, object> > CreateObjectInitializeFieldsAndRunMethods(string fileName, Assembly anAssembly)
        {
            ViableMapAndData aMap = ReadObject.LoadMap(fileName);

            return(CreateObjectInitializeFieldsAndRunMethods(aMap, anAssembly));
        }
Пример #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));
        }
Пример #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));
        }
Пример #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));
        }