我以前是C#开发人员,所以这个评论风格在C#中很容易.这让我疯狂,但是如何在VB.NET中执行此操作,而不会出现语法错误?
Private ReadOnly Property AcceptableDataFormat(ByVal e As System.Windows.Forms.DragEventArgs) As Boolean Get Return e.Data.GetDataPresent(DataFormats.FileDrop) _ 'this is a file that a user might manipulate OrElse e.Data.GetDataPresent("FileGroupDescriptor") 'this is a typical Outlook attachment End Get End Property