|
USE MUTEX CLASS PRACTICALLY TO HANDLE MULTIPLE PROCESSES
by
Jaish Mathews
On
Apr 29, 2010
Before entering in to Mutex, I need to explain it's functional difference with Monitor class. This difference is still seeing as a hot discussion in side various communities. The difference is the scope between two types. Scope of Mutex is wider than Monitor.
|
|
|
|
|
Running Assemblies in custom application domains
by
Jaish Mathews
On
Apr 28, 2010
This sounds like a deep technical thing and internally it's right too. But in a developer prospective, if he needs to run an assembly under a fresh new ApplicationDomain, it's so easy like just use some of the classes defined in System NameSpace. Below I am explaining this with a small console application.
|
|
|
|
|
MAKE CROSS THREAD METHOD CALLS USING INVOKE METHOD OF THE CONTROL
by
Jaish Mathews
On
Apr 22, 2010
Cross threading is a phenomina normally happening in any of application debug session. Developer may not able to understand what's this all about. He may not actually coded for any such scenario like Threading. But this exception may raise especially in side a method where you are accessing any of the GUI control menthod. One natural scenaio will happen, once you
are handling with FielSystemWatcher class. But here 1st I will create a sceanrio and then will give you 2 way resolution too.
|
|
|
|
|
APPLY LATE BINDING IN .NET 4.0 AND DIFFERENTIATE IT WITH VAR KEYWORD
by
Jaish Mathews
On
Apr 18, 2010
Latebinding is a common term among VB6.0 programmers. C# was always strongly typed. But in 3.x version they introducded var keyword which suporting dynamic binding. But not late binding. After 4.0 relese they came up with dynamic keyword. This fully supporting late binding. Below explaining the difference between var and dynamics. Also a simple example saying where we can use dynamics in C#
|
|
|
|
|
USING JSON SERIALIZATION FOR CODE BEHIND-JAVASCRIPT DATA COMMUNICATION
by
Jaish Mathews
On
Apr 14, 2010
Many of us went through a scenario like, can us pass a full of C# type/class to the javascript?
Modify from there and again return back to C#? The difficulty is that JavaScript only knows string format comared to C# which has many data types. So how we can pass an entires class to JavaScript? Here we need to handle with JSON serialization techniques.
|
|
|
|
|
SCRIPT REFERENCE PROFILER TO GET JAVASCRIPT REFERENCE DETAILS
by
Jaish Mathews
On
Apr 11, 2010
Many of us came through a scenario like, you need the details of total JS files referred to a web page. It's not a matter if all JS are directly referring through physical file. But now a days for cache purose we are embedding JS to the assembly. In these situations how you will get the JS reference details? Here coming ScriptReferenceProfiler.
|
|
|
|
|
HASHSET COLLECTION FOR UNIQUE UNSORTED ITEMS
by
Jaish Mathews
On
Mar 25, 2010
HashSet is the new collection class introduced in .NET3.5. It can be used to store a specific single type. But compare to equivalent List type, it keeps
1.Unique elements without duplication.
2.Unsorted elements using Hash algorithm.
3.Because of above behaviour, it has better performance.
|
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT A REAL AJAX CUSTOM CLASS. STORE THE OBECT VALUES AND RETAIN IT
by
Jaish Mathews
On
Oct 24, 2009
Asp.net ajx supporting custom Classes and NameSpaces. We can declare a class and use it object in another place. We can also store the values to this object and later can use for other purposes. I am here decalring a custom class inside a custom ajax library. Then using that class in another javascrit. You peole need to try to elaborate this class with more functionalities. I am trying to give you a good start.
|
|
|
|
|
|
|
|
|
USING XDOCUMENT & LINQ COMBINATION
by
Jaish Mathews
On
Oct 21, 2009
If you have XML file with data, it can be easily parsed using LINQ and the output can be displayed in a GUI control. LINQ along with XDocument made the things easy compared to previous XMLDocument element. Every one should try with this combination. It's really great
|
|
|
|
|
|
|
|
|
USE AJAX ONCE YOU HAVE IT
by
Jaish Mathews
On
Oct 19, 2009
I am seeing developers still not using asp.net Ajax built-in methods inside their client script. They have a Script Manager reference. But still using convention java script methods. If you have Script Manager reference should use asp.net AJAX methods. Problem may be most of them may not aware of how easy to handle many conventional java script functionalities using built-in AJAX methods. I am here tried to cover possible important methods under asp.net AJAX which are commonly using and I never used any complex example to describe it. This one a simple filtering application fully depend on client side.
|
|