Class GeminiFieldMaskGenerator
Extension to generate a Field Mask from any object.
public static class GeminiFieldMaskGenerator
- Inheritance
-
objectGeminiFieldMaskGenerator
Methods
GetFieldMask(object)
Generates a Field Mask from an object.
public static string GetFieldMask(this object thiz)
Parameters
thizobjectThe object.
Returns
- string
A string field mask.
Remarks
This is a reflection heavy process. Also, this only works if the default value of all fields and properties in the object is null.
Exceptions
- NotImplementedException
Thrown if
thizdoes not implement JsonObjectAttribute or has no defined NamingStrategy.