Quantcast
Channel: Learning by blogging
Browsing latest articles
Browse All 19 View Live

Introduction

Hi everybody. I created this blog to share my .NET findings and thoughts. It is also a way to learn English,  so if you find my English really weird remember what  the blog's name  is stand for :)

View Article



New SOS commands in CLR 4.0 Beta1

I seems that SOS will have several new commands in CLR 4.0.How did I find that out?  I just retrieved SOS help file (it’s just a binary resource in SOS.dll) from .NET 2.0 SOS   and .NET 4.0  SOS and...

View Article

C# 4.0 lock statement implementation

We all know what C# lock statement turns into.Givingstaticvoid Main(string[] args){lock (s_lock) { }}We getprivatestaticvoid Main(string[] args){object CS$2$0000; Monitor.Enter(CS$2$0000 = s_lock);try...

View Article

overVARing

I hate such code:var commandLine = SomeClass.SomeProperty;var splitCommandLine = SomeClass.SomeMethod();It tells nothing about the types of the variables.Using var keyword is tolerable when you...

View Article

Tuple as value type

There is new  type in .NET BCL - Tuple.  What is it is explained in the article CLR Inside Out: Building Tuple. The BCL team has decided it to be a reference  type. The reason is well motivated but I...

View Article


ASP.NET white space cleaning with no runtime cost

I think many asp.net developer looking at the markup generated by a ASP.NET pages wanted to get rid of those white space without necessity of changing nice indents of their pages and user...

View Article

Perfomant Eval

Add the following code to your base page and base user control.protected TItem Eval<TItem>(){return (TItem)GetDataItem();}Register the namespace of your entities in the import directive or in...

View Article

HttpApplication.Init method

HttpApplication class has a method  Init. It is virtual and called by ASP.NET runtime when initializing of a HttpApplication is almost finished i.e. all modules have been initialized and all event...

View Article


Combining ASP.NET AJAX component descriptors

If you have worked with ASP.NET AJAX you know that every instance of ScripCompomentDescriptor created on server side generates startup javascript code at the end of the page. Something like...

View Article


Spirals

In COM times IDispatch and IExpando interfaces were used to enable COM components written in strongly typed languages to enter the world of VisualBasic and JScript. Now DynamicObject and ExpandoObject...

View Article

Image may be NSFW.
Clik here to view.

My God.. It’s Full Of Clouds!

Microsoft, Amazon, Google

View Article

Type initialization changes in .NET 4.0

Corroborating his reputation Jon Skeet has found interesting changes in .NET 4.0 CLR

View Article

.NET threads and stack memory

Normally when an unmanaged thread is created 1 MB of virtual address space is reserved and 4 KB (a page) is committed for its stack. Reserved here is an important word, because reservation allocates no...

View Article


LINQ TO SQL and asynchronous IO

LINQ TO SQL doesn’t inherently support asynchronous IO. It is unfortunate, because non-blocking IO is a way to get great scalability on server side whether you do it directly with APM,   CCR Iterators...

View Article

EqualityComparer for C# 3.0 Expressions

.NET Expression classes let us perform only reference equality checks on them. But sometimes we need to check the true value equality.  As part of my attempt to build autocacher for LINQ TO SQL...

View Article


What I’d like to see in C# 5.0

Axum, an experimental language, has such a feature as async methods. In such methods interaction with  interaction points and APM based API happens asynchronously. Besides that there are signs that in...

View Article

C# 4.0 events. Small implementation change

C# 4.0 is going to change the way how event handlers addition and removal is implemented. From it birth C# compiler used to add special accessor methods to every event which didn’t have its own...

View Article


C# iterators based scheduling

If you ask Google about asynchronous iterators you'll see that a lot of people have been using C# iterators for doing things that iterators were not supposed to do in the first place - from effective...

View Article

Image may be NSFW.
Clik here to view.

Bad news, everyone!

If it is true..update (18/09/2010/): Microsoft has released an advisory to help customers understand the vulnerability and apply workarounds to secure their sites. The advisory is at...

View Article
Browsing latest articles
Browse All 19 View Live




Latest Images