Code: Select all
if (objCfg.strIOMask.ToLower().StartsWith("0x")) {
objCfg.strIOMask = objCfg.strIOMask.Substring(2);
}
Etwas wie:
Code: Select all
public String strIOMask {
get;
set {
if (value.ToLower().StartsWith("0x")) {
value = value.Substring(2);
}
}
}
< /code>
Ich weiß, dass das obige falsch ist. Aus IDE: < /p>
Severity Code Description Project File Line Suppression State
Error (active) CS8652 The feature 'field keyword' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version. NewHMIProject Module.cs 156
Mobile version