1
public static class MySampleClass
{
public static string sampleProperty1
{
get { return GetValue("sampleProperty1"); }
}
public static string GetValue(string Key)
{
// Here is the code to get value from table based Key.
return Key;
}
}
我有像SampleProperty1 MySampleClass许多静态属性... 一旦我的属性设置的值,我不能将值重置为相同的属性。
这是哪一种语言? –
c#,Mvc应用程序。 –
你如何为你的房产设置价值?它看起来像sampleProperty1将始终具有值“sampleProperty1”。 GetValue的目的是什么? – dsolimano