Git Repository Public Repository

CPE_learningsite

URLs

Copy to Clipboard

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json.Serialization;

namespace CPE.App.Web.Elucidat
{
    public class UnderscoreContractResolver : DefaultContractResolver {
        /// <summary>
        /// Map PHP style property names (e.g. project_code) in JSON to .NET style property names (e.g. ProjectCode) in class definitions
        /// and vice-versa.
        /// </summary>
        /// <param name="propertyName"></param>
        /// <returns></returns>
        protected override string ResolvePropertyName(string propertyName) {
            return propertyName.TransformPropertyName();
        }
    }
}

Commits for CPE_learningsiteCPE/CPE.App/CPE.App.Web/Elucidat/UnderscoreContractResolver.cs

Diff revisions: vs.
Revision Author Commited Message
4cd176 ... v.shishlov Fri 27 Aug, 2021 14:33:17 +0000

initial commit