tModLoader v2024.09
A mod to make and play Terraria mods
DefaultDictionaryKeyValueAttribute Class Reference

Defines the default key value to be added when using the ModConfig UI to add elements to a Dictionary. Works the same as System.ComponentModel.DefaultValueAttribute, but can't inherit from it because it would break when deserializing any data structure annotated with it. This attribute compliments DefaultListValueAttribute when used annotating a Dictionary. More...

Inherits Attribute.

Public Member Functions

 DefaultDictionaryKeyValueAttribute (bool value)
 
 DefaultDictionaryKeyValueAttribute (byte value)
 
 DefaultDictionaryKeyValueAttribute (char value)
 
 DefaultDictionaryKeyValueAttribute (double value)
 
 DefaultDictionaryKeyValueAttribute (float value)
 
 DefaultDictionaryKeyValueAttribute (int value)
 
 DefaultDictionaryKeyValueAttribute (long value)
 
 DefaultDictionaryKeyValueAttribute (object value)
 
 DefaultDictionaryKeyValueAttribute (short value)
 
 DefaultDictionaryKeyValueAttribute (string value)
 
 DefaultDictionaryKeyValueAttribute (Type type, string value)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Protected Member Functions

void SetValue (object value)
 

Properties

virtual object Value [get]
 

Detailed Description

Defines the default key value to be added when using the ModConfig UI to add elements to a Dictionary. Works the same as System.ComponentModel.DefaultValueAttribute, but can't inherit from it because it would break when deserializing any data structure annotated with it. This attribute compliments DefaultListValueAttribute when used annotating a Dictionary.