Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
GeneralRe: TCP Hole Punching not Work Pin
DioCarvalho24-Dec-19 11:40
professionalDioCarvalho24-Dec-19 11:40 
AnswerRe: TCP Hole Punching not Work Pin
phil.o24-Dec-19 23:16
professionalphil.o24-Dec-19 23:16 
GeneralRe: TCP Hole Punching not Work Pin
DioCarvalho25-Dec-19 6:15
professionalDioCarvalho25-Dec-19 6:15 
GeneralRe: TCP Hole Punching not Work Pin
phil.o25-Dec-19 6:22
professionalphil.o25-Dec-19 6:22 
GeneralRe: TCP Hole Punching not Work Pin
DioCarvalho25-Dec-19 6:57
professionalDioCarvalho25-Dec-19 6:57 
GeneralRe: TCP Hole Punching not Work Pin
Gerry Schmitz26-Dec-19 6:24
mveGerry Schmitz26-Dec-19 6:24 
GeneralRe: TCP Hole Punching not Work Pin
DioCarvalho26-Dec-19 12:53
professionalDioCarvalho26-Dec-19 12:53 
QuestionLists basics Pin
_Q12_23-Dec-19 16:46
_Q12_23-Dec-19 16:46 
im an artist and i code for fun.
I just encounter a strange problem in my code and i had to debug it a lot to find this little bug.
Not a bug per say, but more like my way of using things (probably wrong). But now is an eye opener.
C#
//What is the diference between these 2 codes?
 List<string> block = new List<string>();
 List<string> temp = new List<string>();
  void SomeEvent 
  {
   //code1
   block.Clear();
   block.AddRange(temp);

   //code2
   block = temp;
  }

I wanted the text from [temp] list to copy into [block] list.
My usual way of doing it, was as in code2. But it seems is a bad way.
Because when temp is cleared, also the block is cleared, like block is a pointer to the temp.
I only wanted a temporary transfer of data between the 2 lists and not a permanent attachment.
Yah... can you explain the real difference? I had to learn it the hard way i suppose. Smile | :)
AnswerRe: Lists basics Pin
OriginalGriff23-Dec-19 20:28
mveOriginalGriff23-Dec-19 20:28 
AnswerRe: Lists basics Pin
Gerry Schmitz24-Dec-19 5:04
mveGerry Schmitz24-Dec-19 5:04 
QuestionMongoDB, c# driver, ElemMatch an array within an array Pin
jkirkerx19-Dec-19 10:12
professionaljkirkerx19-Dec-19 10:12 
AnswerRe: MongoDB, c# driver, ElemMatch an array within an array Pin
#realJSOP23-Dec-19 0:43
professional#realJSOP23-Dec-19 0:43 
GeneralRe: MongoDB, c# driver, ElemMatch an array within an array Pin
jkirkerx23-Dec-19 6:42
professionaljkirkerx23-Dec-19 6:42 
AnswerRe: MongoDB, c# driver, ElemMatch an array within an array [solved] Pin
jkirkerx23-Dec-19 7:10
professionaljkirkerx23-Dec-19 7:10 
QuestionImage deblur Pin
Member 1318127618-Dec-19 9:48
Member 1318127618-Dec-19 9:48 
AnswerRe: Image deblur Pin
OriginalGriff18-Dec-19 9:53
mveOriginalGriff18-Dec-19 9:53 
AnswerRe: Image deblur Pin
Richard MacCutchan18-Dec-19 21:26
mveRichard MacCutchan18-Dec-19 21:26 
QuestionVFPOLEDB Encoding issue Pin
pepl8016-Dec-19 12:40
pepl8016-Dec-19 12:40 
AnswerRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak16-Dec-19 13:48
mveDave Kreskowiak16-Dec-19 13:48 
GeneralRe: VFPOLEDB Encoding issue Pin
pepl8016-Dec-19 23:32
pepl8016-Dec-19 23:32 
GeneralRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak17-Dec-19 3:03
mveDave Kreskowiak17-Dec-19 3:03 
GeneralRe: VFPOLEDB Encoding issue Pin
Gerry Schmitz17-Dec-19 5:54
mveGerry Schmitz17-Dec-19 5:54 
Questionhow to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 12:08
Rohan Varendani16-Dec-19 12:08 
AnswerRe: how to make a minimalist event manager with c# Pin
Mycroft Holmes16-Dec-19 16:57
professionalMycroft Holmes16-Dec-19 16:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 20:57
Rohan Varendani16-Dec-19 20:57 

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.