Пример #1
0
        static TextureAlias FindOrAddAlias(string name)
        {
            foreach (TextureAlias alias in Aliases)
            {
                if (alias.Name == name) return alias;
            }

            TextureAlias a = new TextureAlias()
            {
                Name = name
            };
            Aliases.Add(a);
            return a;
        }
Пример #2
0
        static TextureAlias FindOrAddAlias(string name)
        {
            foreach (TextureAlias alias in Aliases)
            {
                if (alias.Name == name)
                {
                    return(alias);
                }
            }

            TextureAlias a = new TextureAlias()
            {
                Name = name
            };

            Aliases.Add(a);
            return(a);
        }