本文整理匯總了C#中System.Xml.Linq.XName.GetValue方法的典型用法代碼示例。如果您正苦於以下問題:C# XName.GetValue方法的具體用法?C# XName.GetValue怎麽用?C# XName.GetValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Xml.Linq.XName
的用法示例。
在下文中一共展示了XName.GetValue方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ExecuteFSMSubGroup
internal XElement ExecuteFSMSubGroup(IEnumerator<XElement> enumerator, XName[] namesInList) {
Debug.Assert(namesInList != null);
XElement currElem = null;
WildCard matchingWildCard = null;
XName matchingName = null;
while(enumerator.MoveNext()){
currElem = enumerator.Current;
currentState = FsmMakeTransition(currentState, currElem.Name, out matchingName, out matchingWildCard);
if (currentState!= FSM.InvalidState) {
if ( matchingName != null)
for(int i =0; i < namesInList.Length; i++) {
if (namesInList.GetValue(i).Equals(currElem.Name)) return currElem;
}
}
else {//Get stuck. No recovery attempt is provided for now.
return null;
}
}
//No matching elements/wildcards are found
return null;
}