Esempio n. 1
0
        public static void Initialize()
        {
            var obj = ReplaceMethods.Get() as List <Type>;

            if (!obj.Contains(typeof(GenerationFunctions)))
            {
                (ReplaceMethods.Get() as List <Type>).Add(typeof(GenerationFunctions));
            }
        }
        private static IEnumerable <MethodInfo> GetMethods()
        {
            var methods = new List <MethodInfo>();

            foreach (var type in ReplaceMethods.Get())
            {
                methods.AddRange(type.GetMethods(BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public));
            }
            return(methods);
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReplaceTests"/> class.
        /// Инициализация переменных.
        /// </summary>
        public ReplaceTests()
        {
            var obj = ReplaceMethods.Get() as List <Type>;

            if (!obj.Contains(typeof(GenerationFunctions)))
            {
                (ReplaceMethods.Get() as List <Type>).Add(typeof(GenerationFunctions));
            }

            variableContext = new VariableController();
        }