将Dictionary转换为JSOn(convert Dictionary into JSOn)
我想将Dictionary转换为Json。 键是一个字符串,值是CompaignModel的ICollection:
IDictionary<string, ICollection<BuzzCompaignModel>> BuzzCompaignByInterest ;
这里包含BuzzCompaign模型:
public class BuzzCompaignModel { public long BuzzCompaignId { get; set; } public string Name { get; set; } public string Description { get; set; } public DateTime EndDate { get; set; } }
我怎么能将BuzzCompaignByInterest转换为JSON
i want to convert Dictionary into Json. the key is a string and the value is a ICollection of CompaignModel :
IDictionary<string, ICollection<BuzzCompaignModel>> BuzzCompaignByInterest ;
and here is what contain BuzzCompaign Model :
public class BuzzCompaignModel { public long BuzzCompaignId { get; set; } public string Name { get; set; } public string Description { get; set; } public DateTime EndDate { get; set; } }
how can i convert BuzzCompaignByInterest into JSON
原文:https://stackoverflow.com/questions/11576083
更新时间:2023-05-26 11:05
最满意答案
相关问答
更多-
软件用英文怎么说[2023-07-22]
software -
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
在将PHP脚本转换为独立的Windows可执行文件的答案中,有一个非常全面的PHP编译器列表 There's a pretty comprehensive list of PHP compilers in the answer to Convert a PHP script into a stand-alone windows executable
-
是。 如果你与最终用户而不是程序员打交道,那么为他的平台建立本地解决方案是一个好主意。 创建一个dmg,一个exe和一些linux软件包。 对于exe的东西,看看launch4j或jsmooth 。 Yes. If you dealing with end users and not programmers, building a native solution for his platfrom is a good idea. Create a dmg, a exe and some linux packa ...
-
将它添加到数组会增加引用计数,因此显式发布会将引用计数保留为1.不是很好的做法(在引用它之前不应该发布某些内容),但在这种情况下它是安全的。 Adding it to the array will increase the reference count, so the explicit release will leave the reference count as 1. It's not good practice (you shouldn't release something until you' ...
-
它取决于:功能,应用程序,平台和用户。 没有神奇的可用性刻度盘,你只需转动或按钮就可以推动。 即使在上述内容中,可能有多种方式可以使特征更容易被发现,但正确的方法(s?)可能取决于您拥有多少灵活性。 因为你刚刚向实际用户发布了应用程序,我猜你不能重新构建应用程序或对其架构方式进行重大改变以提高可发现性。 这就是为什么可以在早期(在开发过程中)开始并经常进行可用性测试(使用真实用户)。 如果您可以提供一个更具体的功能示例,您希望使其更易被发现,那么您可能会得到更明确的答案。 如果你在https://ux.st ...
-
Jar to exe使用NSIS(Jar to exe using NSIS)[2022-11-04]
您可以通过调用SetEnvironmentVariable为NSIS进程和子进程设置环境变量: System::Call 'Kernel32::SetEnvironmentVariable(t "CLASSPATH", t "c:\some\path\you\got\from\the\registry")' You can set environment variables for the NSIS process and child processes by calling SetEnvironment ... -
这取决于反射器与其他一切之间的关系,因为我对这个项目一无所知,所以我无法评论。 GPL依赖版权法:如果您根据版权法做某些事情,则无需关注GPL。 因此,GPL适用于GPLed软件的衍生作品,但不适用于分离软件。 关于什么算作衍生品和什么是分开的,存在一些争论,但我不是律师,也没有立场。 有一点很清楚的是,如果一个程序没有链接到GPLed程序,而是与它并排并通过标准的进程间通信进行通信,那么它就是它自己独立的工作,并且不受GPL的约束。 因此,如果反射器被链接,则它受GPL的约束。 如果它作为自己独立的进程运 ...
-
如果用户有足够的知识,则无法阻止用户查找您的程序执行的操作。 即使没有PDB,也可以使用一种称为逆向工程的技术来找出您的程序的功能。 像IDA Pro这样的程序非常擅长。 使用中间语言的编程语言(如C#和Java)几乎都是在源代码中提供的。 像dotPeek这样的工具可以显示反编译的源代码,令人难以置信的是它与真实源代码的接近程度。 关于PDB,有公共PDB和私有PDB。 您通常会向公众提供公共PDB(顾名思义)并保留私有PDB以进行内部调试。 可以使用名为PDBCopy的工具(使用-p参数)将私有PDB( ...