public void AddCustomAttributes(string key, string value) { lock(_lock) { if (_custom == null) _custom = new Dictionary<string, string>(); _custom.Add(key,value); } }