private string GetFormat() { if (attributes.ContainsKey(typeof(FormatAttribute))) { var attribute = attributes[typeof(FormatAttribute)].CreateAttribute() as FormatAttribute; return attribute.Format; } return null; }