Table of Contents

Class GeminiFieldMaskGenerator

Namespace
Uralstech.UGemini

Extension to generate a Field Mask from any object.

public static class GeminiFieldMaskGenerator
Inheritance
object
GeminiFieldMaskGenerator

Methods

GetFieldMask(object)

Generates a Field Mask from an object.

public static string GetFieldMask(this object thiz)

Parameters

thiz object

The 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 thiz does not implement JsonObjectAttribute or has no defined NamingStrategy.