本文整理汇总了C#中Tag.visit方法的典型用法代码示例。如果您正苦于以下问题:C# Tag.visit方法的具体用法?C# Tag.visit怎么用?C# Tag.visit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tag
的用法示例。
在下文中一共展示了Tag.visit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: visitAfter
private void visitAfter(Tag visitAfter)
{
if (visitAfter != null)
{
//UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
assert !done.contains(visitAfter);
visitAfter.visit(handler);
done.Add(visitAfter);
}
}
示例2: define
// changed from private to public to support Flash Authoring - jkamerer 2007.07.30
public virtual void define(Tag tag)
{
if (!done.Contains(tag))
{
//UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'"
for (System.Collections.IEnumerator i = tag.References; i.MoveNext(); )
{
//UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'"
Tag ref_Renamed = (Tag) i.Current;
define(ref_Renamed);
}
// ImportRecords are pre-visited via their parent ImportAssets tag.
if (!(tag is ImportRecord))
{
tag.visit(handler);
// FIXME: we really need a general handler for references that should be handled after the
// parent tag is visited. Or maybe all references can be changed so that they are handled
// after the main tag is visited?
Tag visitAfter = null;
if (tag is DefineSprite)
{
visitAfter = ((DefineSprite) tag).scalingGrid;
}
else if (tag is DefineButton)
{
visitAfter = ((DefineButton) tag).scalingGrid;
}
else if (tag is DefineShape)
{
visitAfter = ((DefineShape) tag).scalingGrid;
}
else if (tag is DefineFont3)
{
visitAfter = ((DefineFont3) tag).zones;
}
else if (tag is DefineEditText)
{
visitAfter = ((DefineEditText) tag).csmTextSettings;
}
else if (tag is DefineText)
{
visitAfter = ((DefineText) tag).csmTextSettings;
}
this.visitAfter(visitAfter);
visitAfter = null;
if (tag is DefineFont)
{
visitAfter = ((DefineFont) tag).license;
}
this.visitAfter(visitAfter);
}
done.Add(tag);
}
}