Esempio n. 1
0
        public Resource CreateResource(bool overrideSpecificName = true)
        {
            var ccpncr = new CamelCasePropertyNamesContractResolver();

            ccpncr.NamingStrategy.OverrideSpecifiedNames = overrideSpecificName;

            var ser = new JsonSerializerSettings();

            ser.ContractResolver  = ccpncr;
            ser.NullValueHandling = NullValueHandling.Ignore;


            ResourceBuilder builder = new ResourceBuilder(ser);

            return(builder.Create());
        }