我有一个属性为 ct1 - ct5 的对象。该对象是一个自动生成的 linq-to-sql 对象。我想在 c# 中为这些属性赋值。有没有办法在 for 循环中做到这一点?
例如类似(对象名称:new_condition):
for (int i = 1; tag <= 5; i++)
{
new_condition.cti = values[i];
}
Run Code Online (Sandbox Code Playgroud)
其中,i在CTI得到评估。
提前致谢
有没有人知道在wordpress中保留哪些元键(我不能用于我自己的目的),如果有的话?
另外,关于我的wordpress部分.有谁知道怎么称呼它?
提前致谢.