Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AmbientValueAttribute() [1/11]

System.ComponentModel.AmbientValueAttribute.AmbientValueAttribute ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type,
string value )
inline

Definition at line 11 of file AmbientValueAttribute.cs.

12 {
13 try
14 {
15 Value = TypeDescriptor.GetConverter(type).ConvertFromInvariantString(value);
16 }
17 catch
18 {
19 }
20 }

References System.ComponentModel.TypeDescriptor.GetConverter(), System.type, System.ComponentModel.AmbientValueAttribute.Value, and System.value.