本文整理匯總了C#中System.Platform.value方法的典型用法代碼示例。如果您正苦於以下問題:C# Platform.value方法的具體用法?C# Platform.value怎麽用?C# Platform.value使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Platform
的用法示例。
在下文中一共展示了Platform.value方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: checkPlatform
public virtual bool checkPlatform(Platform platform)
{
if (platform == null)
return true;
string property = this.properties.getProperty("platform.name");
string[][] strArray1 = new string[2][];
int index1 = 0;
string[] strArray2 = platform.value();
strArray1[index1] = strArray2;
int index2 = 1;
string[] strArray3 = platform.not();
strArray1[index2] = strArray3;
string[][] strArray4 = strArray1;
bool[] flagArray1 = new bool[2];
int index3 = 0;
int num1 = 0;
flagArray1[index3] = num1 != 0;
int index4 = 1;
int num2 = 0;
flagArray1[index4] = num2 != 0;
bool[] flagArray2 = flagArray1;
for (int index5 = 0; index5 < strArray4.Length; ++index5)
{
string[] strArray5 = strArray4[index5];
int length = strArray5.Length;
for (int index6 = 0; index6 < length; ++index6)
{
string str = strArray5[index6];
if (String.instancehelper_startsWith(property, str))
{
flagArray2[index5] = true;
break;
}
}
}
return (strArray4[0].Length == 0 || flagArray2[0]) && (strArray4[1].Length == 0 || !flagArray2[1]);
}