Hello everybody,
today I want to give sample of reading available types from dll .net assembly, check if at least one of them implements interface, and if implements then to create instance of that type and return it.
So, imagine you have such interface declaration in your code:
public ...
Hello everybody,
today I want to write few words about Concurent collections in C#. First of all I want to point there there are only four of them:
ConcurrentDictionary
ConcurrentQueue
ConcurrentStack
ConcurrentBag
BlockingCollection
Partitioner
EnumerablePartitionerOptions
IProducerConsum...
Hello everybody,
today I want to document few features of System.Reflection namespace.
It has following important types:
Type ( with methods GetType, GetMemberInfo, GetPropertyInfo, GetFieldInfo ), Activator ( with method CreateInstance ), Assembly ( Load, LoadFrom, GetTypes, GetName, GetFiles ),...
Hello everybody,
today I want to describe one new feature of C# that I discovered today. At MSDN it is named Type pattern. It looks like this:
expr is type varname
such code gives you to shorter your code.
Take a look at the following code:
using System;
public class Student...
Hello everybody,
recently one of my readers asked me to show whole code of taking value of ema.
Here it is:
package jforex;
import java.util.*;
import com.dukascopy.api.*;
public class CountSamples implements IStrategy {
private IEngine engine;
private IConsole console;
private IHistory hi...
Recently friend of mine shared with me how he makes sales.
Here is his algorithm:
Introduce to your potential customer ( linkedin, facebook )
Send useful advices
Send 3 useful advices according to your topic of activity
Call to him. It shouldn't be call for sales. Just clarify what questio...
Hello everybody,
today I want to write few words about Interception.
First of all one of the questions that requires consideration can be why we may need interception at all? Need in interception arises in cases when we have some kind of logic, that is dispersed around whole application. Some can...
Hello everybody,
today I'd like to say few words about project file of format shfbproj.
Recently at one project I had to face following error message:
Overview
Project
Path
Errors
Warnings
Messages
Documentation
Source\Documentation.shfbproj
1
0
0
ConveyorSubsystem.Docu...
Hello everybody,
today I want to write few words about how to instal latest Nuget into Windows docker container. For this purpose you can use following commands:
RUN mkdir c:\NugetRUN Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe' -OutFile 'c:\Nuget\nuget.e...
Hello everybody,
today I want to share with the world another piece of code, producing of which took me significant amount of efforts, getting response from Walmart.
Yesterday I've posted code that signs provided by Walmart credentials.
And today I decided to post code that retrieves orders infor...