急求 急求 ,有人认识这种语法吗?
public class StyleCache:ArrayList
{
public Style this[Style fromStyle]
{
get
{
foreach (object o in this)
{
Style toStyle = o as Style;
if
(
toStyle.Alignment == fromStyle.Alignment
)
{
return toStyle;
}
}
return null;
}
set
{
this.Add(fromStyle);
}
}
}