public static void AddMultiConstructor(string tagPrefix, RubyYamlMultiConstructor ctor) { if (!_yamlMultiConstructors.ContainsKey(tagPrefix)) { _yamlMultiConstructors.Add(tagPrefix, ctor); _yamlMultiRegexps.Add(tagPrefix, new Regex("^" + tagPrefix, RegexOptions.Compiled)); } }