本文整理汇总了C#中QName.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# QName.ToString方法的具体用法?C# QName.ToString怎么用?C# QName.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QName
的用法示例。
在下文中一共展示了QName.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetMembers
private static MemberList GetMembers(List<MemberInfo> abcMembers, FlagType baseFlags, QName instName)
{
MemberList list = new MemberList();
string package = instName.uri;
string protect = instName.ToString();
foreach (MemberInfo info in abcMembers)
{
MemberModel member = GetMember(info, baseFlags);
if (member == null) continue;
string uri = info.name.uri ?? "";
if (uri.Length > 0)
{
if (uri == "private" || package == "private")
{
continue;
}
else if (uri == protect)
{
member.Access = Visibility.Protected;
member.Namespace = "protected";
}
else if (uri == package)
{
member.Access = Visibility.Internal;
member.Namespace = "internal";
}
else if (uri == "http://adobe.com/AS3/2006/builtin")
{
member.Access = Visibility.Public;
member.Namespace = "AS3";
}
else if (uri == "http://www.adobe.com/2006/flex/mx/internal")
{
continue;
}
else if (uri == "http://www.adobe.com/2006/actionscript/flash/proxy")
{
member.Access = Visibility.Public;
member.Namespace = "flash_proxy";
}
else if (uri == "http://www.adobe.com/2006/actionscript/flash/objectproxy")
{
member.Access = Visibility.Public;
member.Namespace = "object_proxy";
}
else // unknown namespace
{
member.Access = Visibility.Public;
member.Namespace = "internal";
}
}
if (thisDocs != null) GetMemberDoc(member);
list.Add(member);
}
return list;
}
示例2: RefEquals
private static bool RefEquals(QName qnA, QName qnB) {
Debug.Assert(
((object)qnA == (object)qnB) || qnA.Local != qnB.Local || qnA.NsUri != qnB.NsUri || qnA.Prefix != qnB.Prefix,
"QName atomization Failure: '" + qnA.ToString() + "'"
);
return (object)qnA == (object)qnB;
}