IronRuby.Builtins.RubyStruct.Info.Info C# (CSharp) Method

Info() private method

private Info ( string names ) : System
names string
return System
            internal Info(string/*!*/[]/*!*/ names) {
                _names = ArrayUtils.Copy(names);
                _nameIndices = new Dictionary<string, int>(names.Length);
                for (int i = 0; i < names.Length; i++) {
                    string name = names[i];
                    if (!Tokenizer.IsVariableName(name)) {
                        throw RubyExceptions.CreateNameError(String.Format("invalid attribute name `{0}'", name));
                    }

                    // overwrites duplicates:
                    _nameIndices[names[i]] = i;
                }
            }