C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Visual Studio »

Creates a new custom collection in VB.Net


Posted Date: 13 Jul 2009    Resource Type: Code Snippets    Category: Visual Studio
Author: R.VijayaragavanMember Level: Gold    
Rating: 1 out of 5Points: 7



Abstract:


To Create a custom Collection Class in Visual Basic .NET.

Code:




Public Class TypeCustomCollection
Inherits CollectionBase

Default Public Property Item(ByVal index As Integer) As Type
Get
Return CType(List(index), Type)
End Get

Set(ByVal value As Type)
List(index) = value
End Set
End Property

Public Function Add(ByVal Value As Type) As Integer
Return List.Add(Value)
End Function

Public Sub Remove(ByVal Value As Type)
If (List.Contains(Value)) Then
List.Remove(Value)
End If
End Sub
End Class



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Creates a new custom collection in VB.Net  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: LPAD and RPAD SQL Functions in Dot Net
Previous Resource: How to bind FlexGrid without Coding in VB
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use