Ancestry.QueryProcessor.Parse.ReservedWords.PopulateReservedWords C# (CSharp) Method

PopulateReservedWords() private static method

private static PopulateReservedWords ( ) : void
return void
        private static void PopulateReservedWords()
        {
            FieldInfo[] LFields = typeof(ReservedWords).GetFields();

            int LFieldCount = 0;
            foreach (FieldInfo LField in LFields)
                if (LField.FieldType.Equals(typeof(string)) && LField.IsLiteral)
                    LFieldCount++;

            FReservedWords = new string[LFieldCount];

            int LFieldCounter = 0;
            foreach (FieldInfo LField in LFields)
                if (LField.FieldType.Equals(typeof(string)) && LField.IsLiteral)
                {
                    FReservedWords[LFieldCounter] = (string)LField.GetValue(null);
                    LFieldCounter++;
                }
        }