foreach (PropertyInfo propertyInfo in base.GetType().GetProperties()) { if (propertyInfo.CanWrite) { propertyInfo.SetValue(this, tag, null); } }