[]
Determines a value indicating whether the value of the specified object's specified property needs to be persisted.
public static bool ShouldSerializeValue(object obj, string propertyName)
| Type | Name | Description |
|---|---|---|
| object | obj | The specified object. |
| string | propertyName | Name of the specified property. |
| Type | Description |
|---|---|
| bool | true if the current value of the property is different from its default value; otherwise, false. |