Architectural Styles vs. Architectural Patterns vs Design Patterns

Dec 27, 2018 261
architectural-styles-vs-architectural-patterns-vs-design-patterns

Architectural Styles Architectural styles tell us, in very broad strokes, how to organise our code. It’s the highest level of granularity and it specifies layers, high-level modules of the application. Architectural Patterns A pattern is a recurring solution to a recurring problem. In the case of Architectural Patterns, they solve th...

MORE...

Assembly in C# or .NET

Dec 27, 2018 195
assembly-in-c-or-net

An assembly is the compiled output of your code, typically a DLL, but your EXE is also an assembly. It's the smallest unit of deployment for any .NET project. https://stackoverflow.com/questions/1362242/what-exactly-is-an-assembly-in-c-sharp-or-net

MORE...

Check Local IP Address [C#]

Nov 07, 2018 226
check-local-ip-address-c

This example shows how to detect whether a host name or IP address belongs to local computer. Get local computer name Get local computer host name using static method Dns.GetHostName. [C#] string localComputerName = Dns.GetHostName(); Get local IP address list Get list of computer IP addresses using static method D...

MORE...

Create an Asynchronous Method [C#]

Nov 07, 2018 280
create-an-asynchronous-method-c

This example shows how to create an asynchronous method conforming to the Event-based Asynchronous pattern. This example is part of asynchronous method implementation series. In this example, we create an asynchronous version of a method that processes a list of files. [C#] private void MyTask(string[] files) { fore...

MORE...

Create New Thread [C#]

Nov 07, 2018 207
create-new-thread-c

This example shows how to create a new thread in .NET Framework. First, create a new ThreadStart delegate. The delegate points to a method that will be executed by the new thread. Pass this delegate as a parameter when creating a new Thread instance. Finally, call the Thread.Start method to run your method (in thi...

MORE...