0
不知道從哪裏開始,我想寫的結果我回到JSON寫返回的結果,以JSON
當前代碼:
public Setting TestSettings(Example _example, String type)
{
var results = _example.GetExample("Testing");
return results;
}
設置模式
string Description { get; set; }
Guid? Guid1 { get; set; }
Guid? Guid2 { get; set; }
string Key { get; set; }
string Value { get; set; }
GetExample
public Setting GetExample(string key)
{
using (var db = MyDataContext.StoredProcs)
{
return db.GetExample<Setting>(key, _curGuid1, _curGuid2, SettingExtensions.SettingFactory());
}
}
JSON。[De] Serialize是你想要的嗎? –
它是一個WCF服務嗎?一個純粹的C#方法?你的背景是什麼? –
@SteveB返回的類型是:描述:名稱,Id:232,Guid1:someGuide,Guid2:其他指南,鍵:accessType,值:輸入「 - 純c# – Masriyah