Exemple #1
0
            public static JsonDataContract GetJsonDataContract(DataContract traditionalDataContract)
            {
                int id = JsonDataContractCriticalHelper.GetId(traditionalDataContract.UnderlyingType.TypeHandle);
                JsonDataContract dataContract = s_dataContractCache[id];

                if (dataContract == null)
                {
                    dataContract            = CreateJsonDataContract(id, traditionalDataContract);
                    s_dataContractCache[id] = dataContract;
                }
                return(dataContract);
            }
Exemple #2
0
 protected JsonDataContract(JsonDataContractCriticalHelper helper)
 {
     _helper = helper;
 }
Exemple #3
0
 protected JsonDataContract(DataContract traditionalDataContract)
 {
     _helper = new JsonDataContractCriticalHelper(traditionalDataContract);
 }
Exemple #4
0
 public static JsonDataContract GetJsonDataContract(DataContract traditionalDataContract)
 {
     return(JsonDataContractCriticalHelper.GetJsonDataContract(traditionalDataContract));
 }
Exemple #5
0
 protected JsonDataContract(JsonDataContractCriticalHelper helper)
 {
     _helper = helper;
 }
Exemple #6
0
 protected JsonDataContract(DataContract traditionalDataContract)
 {
     _helper = new JsonDataContractCriticalHelper(traditionalDataContract);
 }