TranslateTool.ResXFile.ReadNonlocalized C# (CSharp) Method

ReadNonlocalized() private method

private ReadNonlocalized ( ) : void
return void
        void ReadNonlocalized()
        {
            ResXResourceReader reader = new ResXResourceReader(NonLocalizedFileName);
            reader.UseResXDataNodes = true;

            System.Collections.IDictionaryEnumerator enumerator = reader.GetEnumerator();

            // Run through the file looking for only true text related
            // properties and only those with values set.
            foreach (System.Collections.DictionaryEntry dic in reader) {
                // Only consider this entry if is an interesting string.
                if (null != dic.Value) {
                    ResXDataNode dataNode = (ResXDataNode) dic.Value;

                    if (InterestingString(dataNode))
                        AddStringResource(dataNode.Name, (string) dataNode.GetValue(noAssemblies), dataNode.Comment);
                }
            }
        }