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); }
protected JsonDataContract(JsonDataContractCriticalHelper helper) { _helper = helper; }
protected JsonDataContract(DataContract traditionalDataContract) { _helper = new JsonDataContractCriticalHelper(traditionalDataContract); }
public static JsonDataContract GetJsonDataContract(DataContract traditionalDataContract) { return(JsonDataContractCriticalHelper.GetJsonDataContract(traditionalDataContract)); }
protected JsonDataContract(JsonDataContractCriticalHelper helper) { _helper = helper; }
protected JsonDataContract(DataContract traditionalDataContract) { _helper = new JsonDataContractCriticalHelper(traditionalDataContract); }