Code Example
Replace
list.Items.Add(status);
with:
this.Invoke((MethodInvoker)delegate
{
//list.Items.Add(status);
});
Thursday, December 11, 2014
C# Naming Conventions with example
use PascalCasing for class names and method names.
use camelCasing for method arguments and local variables
use noun or noun phrases to name a class.
prefix interfaces with the letter I. Interface names are noun (phrases) or adjectives.
References:
http://msdn.microsoft.com/en-us/library/ms229043.aspx
http://www.dofactory.com/reference/csharp-coding-standards
use camelCasing for method arguments and local variables
use noun or noun phrases to name a class.
prefix interfaces with the letter I. Interface names are noun (phrases) or adjectives.
References:
http://msdn.microsoft.com/en-us/library/ms229043.aspx
http://www.dofactory.com/reference/csharp-coding-standards
Wednesday, December 10, 2014
How to list all of listening ports in Windows command prompt?
netstat -anb | findstr /R /C:"[LISTENING]"
How to solve problem "No connection could be made because the target machine actively refused it"
#1 reason is: target machine TCP not listening.
Can run following command line to check:
netstat -anb
Can run following command line to check:
netstat -anb
What is difference between 0.0.0.0 and 127.0.0.1?
127.0.0.1 is localhost. Only same machine can access this address.
But 0.0.0.0 means all of ip addresses binding to this machine.
Reference:
http://blog.lauramamina.com/article?title=0.0.0.0%20vs%20127.0.0.1
But 0.0.0.0 means all of ip addresses binding to this machine.
Reference:
http://blog.lauramamina.com/article?title=0.0.0.0%20vs%20127.0.0.1
Subscribe to:
Posts (Atom)