Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ CreateOptionCollection()

DesignerOptionCollection System.ComponentModel.Design.DesignerOptionService.CreateOptionCollection ( DesignerOptionCollection parent,
string name,
object value )
inlineprotected

Definition at line 357 of file DesignerOptionService.cs.

358 {
359 if (parent == null)
360 {
361 throw new ArgumentNullException("parent");
362 }
363 if (name == null)
364 {
365 throw new ArgumentNullException("name");
366 }
367 if (name.Length == 0)
368 {
369 throw new ArgumentException(System.SR.Format(System.SR.InvalidArgumentValue, "name.Length"), "name");
370 }
371 return new DesignerOptionCollection(this, parent, name, value);
372 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidArgumentValue
Definition SR.cs:84
Definition SR.cs:7

References System.SR.Format(), System.SR.InvalidArgumentValue, and System.value.