Breaking Change T838560
Visible to All Users

Core - ViewShortcut's Empty field is obsolete

What happened
We replaced the static ViewShortcut.Empty field with a property and marked it as obsolete. The Empty property now always returns a new ViewShortcut object. Also, we added a new read-only Boolean IsEmpty property that should be used to check if a given view shortcut is empty.

Why we did this
The static ViewShortcut.Empty field was initialized with an empty ViewShortcut object. Since this object is a regular dictionary, it can be modified in one place and the change will affect the application behavior in other places, unpredictably. Moreover, when this shared object is accessed from different threads (for example, in a Web application), the application may crash.

How to update your application
The Empty field could be used in the following scenarios.

  1. In a condition that compares ViewShortcut.Empty with another view shortcut to check if the latter is empty. Replace this comparison with the ViewShortcut.IsEmpty property check.
  2. To get an empty ViewShortcut object. Use the ViewShortcut() constructor to create a new empty ViewShortcut object instead.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.