Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2007, 07:16 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default implementing a region in interface

hey there,

i`m working on an interface that I included a region in using vb.net as in the following example:

Public Interface GlobalFunctions

#Region "Functions"
    Function ReturnString(ByVal inputString As String) As String
#End Region

End Interface

but when a class implements that interface, the region is not implemented in the implementing class

so it appers like the following example:
Public Class Class1
    Implements GlobalFunctions

    Public Function ReturnString(ByVal inputString As String) As String Implements GlobalFunctions.ReturnString

    End Function
End Class

but I want the class to implement the region as in the following example:

Public Class Class1
    Implements GlobalFunctions
#Region "Functions"
    Public Function ReturnString(ByVal inputString As String) As String Implements GlobalFunctions.ReturnString

    End Function
#End Region
End Class

please help, thanks in advance


 
Old August 27th, 2007, 08:28 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Regions are not part of the code entity you are defining. They are simply a convenience feature for Visual Studio. There is no way to "implement" them.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing The Comparable Interface andyboer Java Basics 4 May 18th, 2007 05:03 AM
Problem With Implementing an Interface brettk_1 General .NET 1 February 28th, 2007 11:47 AM
Repeating Region DynaCube Classic ASP Basics 0 January 12th, 2007 11:26 PM
Repeat Region with a difference. fatmcgav Dreamweaver (all versions) 2 January 17th, 2005 05:00 PM
Region? JAtkinson Visual C++ 0 May 17th, 2004 07:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.