Browse by Tags

All Tags » C# (RSS)

Raspevani programer by Paki

Ćao ljudi, htedoh da podelim sa vama dve pesme jednog našeg kolege čijem izvođenju sam imao čast da prisustvujem u Barseloni na Tech Ed-u 2007. Uživajte :):):) Roy Osherove singing 'Every Build You Brake' Roy Osherove's Reflection Song
Filed under: , , ,

ASP.NET - Ispod haube by Paki

Nakon predavanja koje sam održao na WebFfu 2007 bilo je dosta zainteresovanih za primere, tako da sam postavio zip arhivu koja sadrži sve primere i slide deck predavanja. Pozdrav!
Filed under: , , ,

Event Broker Implementation in C# - Full Source Code and Examples by Paki

Here is the full source code for Event Broker Implementation in C#. In zipped file you can find EventBroker with associated tests ans simple sample application that describes how loosely coupled objects can exchange data in any host....
Filed under: , , ,

Simple EventBroker Implementation in C# by Paki

Here is the simple implementation of EventBroker service. You can use in your aplications to implement communicationamong loosely connected components like plugins for example. EventBroker follows publisher / subscriber pattern. I am preparing pacakaged...
Filed under: , , ,

How to check if current user is in local admins security group by Paki

You can check whether current user belongs to Local Admin Group like this 1. Get reference to current WindowsIdentity WindowsIdentity wi = WindowsIdentity.GetCurrent(); 2. Create WindowsPrincipal using current windows identity WindowsPrincipal wp = new...
Filed under: , ,

How to create Delegates that points to static methods in runtime by Paki

One of the less known feature of .NET Reflection enable us to get reference to static methods which name is not known in compile time and to point a delegate at it. In this example we will enumerate and call all static methods of a plugin marked with...
Filed under: ,
Powered by Community Server (Commercial Edition), by Telligent Systems