EditorPartCollection.Empty 字段
定义
引用集合的一个空的静态只读实例。References a static, read-only, empty instance of the collection.
public: static initonly System::Web::UI::WebControls::WebParts::EditorPartCollection ^ Empty;
public static readonly System.Web.UI.WebControls.WebParts.EditorPartCollection Empty;
staticval mutable Empty : System.Web.UI.WebControls.WebParts.EditorPartCollection
Public Shared ReadOnly Empty As EditorPartCollection
字段值
注解
如果 EditorPartCollection 你希望空集合实例从方法返回适当的对象类型,或将实例与其他对象进行比较,但不需要将成员添加到实例,则静态的只读空实例可减少内存使用量。A static, read-only, empty instance of EditorPartCollection reduces memory usage in cases where you want an empty collection instance to return the proper object type from a method or to compare the instance with another object, but you do not need to add members to the instance.