Click here to Skip to main content
15,914,371 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Knowing about the prerequisites of .net Pin
Abhinav S11-Apr-12 22:05
Abhinav S11-Apr-12 22:05 
AnswerRe: Knowing about the prerequisites of .net Pin
Vipin_Arora17-Apr-12 21:08
Vipin_Arora17-Apr-12 21:08 
Questiondebug asp.net (vb) code on visual studio 2003 in windows 7 Pin
Member 88023079-Apr-12 7:32
Member 88023079-Apr-12 7:32 
AnswerRe: debug asp.net (vb) code on visual studio 2003 in windows 7 Pin
Not Active9-Apr-12 8:02
mentorNot Active9-Apr-12 8:02 
QuestionAccessing and adding Items to a Collection that is in a Collection Pin
D3STROYRofWRLDS6-Apr-12 11:27
D3STROYRofWRLDS6-Apr-12 11:27 
AnswerRe: Accessing and adding Items to a Collection that is in a Collection Pin
Eddy Vluggen7-Apr-12 22:06
professionalEddy Vluggen7-Apr-12 22:06 
QuestionAccessing functions or subs from another class. Pin
Member 85988664-Apr-12 5:03
Member 85988664-Apr-12 5:03 
AnswerRe: Accessing functions or subs from another class. Pin
Eddy Vluggen4-Apr-12 5:21
professionalEddy Vluggen4-Apr-12 5:21 
You group methods together in a class. If those objects take similar parameters, then it's kind of convenient to make an "object" of it, storing the parameters right next to the methods that are going to interact with them. Compare this;
VB
Structure SomeStruct
  Public Bla As String
End Structure
Class MyClass
  Shared Sub DoSomething(ByVal someBla as SomeStruct, Byval No as Integer)
    ' ..
  End Sub
  Shared Sub DoSomethingElse(ByVal someBla as SomeStruct, Byval s as String)
    ' ..
  End Sub
End Class

'example usage;
Dim x as SomeStruct
MyClass.DoSomething(x, 1)
MyClass.DoSomethingElse(x, "Hello")

To this;
VB
Class MyClass
  Private _someBla as someStruct
  Sub New(someBla as someStruct)
    _someBla = someBla
  End Sub
  Sub DoSomething(Byval No as Integer)
    ' ..
  End Sub
  Sub DoSomethingElse(Byval s as String)
    ' ..
  End Sub
End Class

'example usage;
Dim x as SomeStruct
Dim newClass as new MyClass(x)
newClass.DoSomething(1)
newClass.DoSomethingElse("World")

You use "shared" if you don't interact with any properties of the object.
Bastard Programmer from Hell Suspicious | :suss:

QuestionAsynchronous webservice calls and threading Pin
CDP18024-Apr-12 0:19
CDP18024-Apr-12 0:19 
AnswerRe: Asynchronous webservice calls and threading Pin
Eddy Vluggen4-Apr-12 5:10
professionalEddy Vluggen4-Apr-12 5:10 
GeneralRe: Asynchronous webservice calls and threading Pin
CDP18024-Apr-12 5:58
CDP18024-Apr-12 5:58 
SuggestionRe: Asynchronous webservice calls and threading Pin
Eddy Vluggen4-Apr-12 10:53
professionalEddy Vluggen4-Apr-12 10:53 
AnswerRe: Asynchronous webservice calls and threading Pin
cpkilekofp23-Apr-12 10:43
cpkilekofp23-Apr-12 10:43 
QuestionNumberGroupSeparator not working? Pin
Bernhard Hiller1-Apr-12 22:46
Bernhard Hiller1-Apr-12 22:46 
AnswerRe: NumberGroupSeparator not working? Pin
Eddy Vluggen1-Apr-12 23:37
professionalEddy Vluggen1-Apr-12 23:37 
GeneralRe: NumberGroupSeparator not working? Pin
Bernhard Hiller2-Apr-12 0:56
Bernhard Hiller2-Apr-12 0:56 
GeneralRe: NumberGroupSeparator not working? Pin
Eddy Vluggen2-Apr-12 1:05
professionalEddy Vluggen2-Apr-12 1:05 
GeneralRe: NumberGroupSeparator not working? Pin
VJ Reddy13-Apr-12 6:10
VJ Reddy13-Apr-12 6:10 
QuestionHow to select a feature using mouse click in DotSpatial Framework? Pin
Chandan Kumar Rath29-Mar-12 20:56
Chandan Kumar Rath29-Mar-12 20:56 
AnswerRe: How to select a feature using mouse click in DotSpatial Framework? Pin
Pete O'Hanlon29-Mar-12 21:14
mvePete O'Hanlon29-Mar-12 21:14 
QuestionHas StringBuilder gotten more efficient in VS2010? Pin
jesarg29-Mar-12 5:16
jesarg29-Mar-12 5:16 
AnswerRe: Has StringBuilder gotten more efficient in VS2010? Pin
so_soul29-Mar-12 5:45
so_soul29-Mar-12 5:45 
GeneralRe: Has StringBuilder gotten more efficient in VS2010? Pin
Not Active29-Mar-12 6:31
mentorNot Active29-Mar-12 6:31 
QuestionRe: Has StringBuilder gotten more efficient in VS2010? Pin
Stohn29-Mar-12 5:53
Stohn29-Mar-12 5:53 
AnswerRe: Has StringBuilder gotten more efficient in VS2010? Pin
jesarg29-Mar-12 7:15
jesarg29-Mar-12 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.