Geeks With Blogs

News


Dheeman Dutta Just Another Blog.....
You all may have found this one out even earlier, but I found this out just a few days before. A WCF Service doe not allow normal method overloading , which is supported by .NET. It throws InvalidOPerationException. As for the reasons to why this happens is becasue WSDL is not a object orinted language and does not support these features of OOP. However ......

Could post for a long time becuase of some personal problems... Sorry for that ..... Hoping to make some new posts pretty soon.



List ss = new List();

ss.Add(1);

ss.Add(3);

ss.Add(5);

ss.ForEach(delegate(int x)

{ if (x < 4) Console.WriteLine(x); });

 Console.ReadKey();

Also checked out that this is probably the best in compared to Foreach and For loops

 

Cheers



I was trying to load PropertyInfo object using Reflection , when I came accross a very strange thing. I was loading the Assembly using 1) Asembly.LoadFile() and then 2) did a GetTypes() Unfortunately it was throwing an exception that it was unable to load all properties while performing the GetTypes(). However the Assembly.Load() was performing as expected. ......

I started working with the Unity Application Block just the other day. It is the Dependency Injection Block that has recently been introduced in the Enterprise Library Block 4.1. Personally speaking I found it much easier to understand and work with compared to the other standard DI tools like Castle Windsor and Structure map. Some very useful links ......

In one of my previous article (October 2006) on this topic , I’ve shown how to use the Exists() method of a list in order to find an object in the list that matched a certain value. However there I also mentioned about one disadvantage “the value to be checked needs to be more or less predetermined (hardcoded) as the delegate method does not take any ......

27
Jan 08

Windows Live has  a great feature integrated to itself, known as SkyDrive, where you can manage files and keep them on the web. The max size is 1 GB . But it's really a great feature..

 

 



Object creation as you might remember was done using the Factory Pattern (as mentioned in an blog previously “Design patterns - Part 1-Factory Pattern in .NET”. But not always creating involves a single process. Sometimes it takes more than one processes to create a full product, and then creation of these separate objects in a particular way needs ......

The Prototype pattern helps us in creating objects from existing ones. There can be any of the two following situations that may occur . CASE 1: Sometimes you may need to create an object of a certain class, but you do not have all the parameters that the constructor of that object need to create that object . CASE 2: You need to capture the present ......

In the Factory Pattern we were creating objects of different types (viz. different car types Ambassador, Ford etc.) using the pattern. But sometimes we may need to create same object , but each having a different creational process, i.e. though they are objects of the same type they may have different attributes initialized when they are created based ......

It was quite a thrilling experience when a bigbrand gave me the offer as a .net developer after my 3yrs of experience. I was thrilled to bits being a part of the big league , that too with such a big company . I was coming from relatively medium level company, with nice people (at least in my project and the HR guys, don't kow about the rest of them) ......

Guys Enterprise Library 3.0--April 2007 is out . This release of Enterprise Library includes: Caching Application Block, Cryptography Application Block, Data Access Application Block, Exception Handling Application Block, Logging Application Block, Policy Injection Application Block, Security Application Block and Validation Application Block. Download ......

public static Control GetPostBackControl(Page page){ Control control = null; string ctrlname = page.Request.Params.Get("__... if (ctrlname != null && ctrlname != string.Empty) { control = page.FindControl(ctrlname); } else { foreach (string ctl in page.Request.Form) { Control c = page.FindControl(ctl); if (c is System.Web.UI.WebControls.B... ......

I was surprised to see the syntax of the new Generic Eventhandler... Using the .net 1.1 way we can declare events using the following steps.. STEP 1: declare a delegate public delegate void DivThreeHandler(object ,DivByThreeEventArgs e); The abobe delegate declares the parameters to be sent to the event handlers.Any class that wants to handle this event ......

The Accordian Control of the Atlas Control Toolkit RC1 has a starnge behaviour. Any server control placed within it does not fire their server-side events. However I found out a way around to this problem. Did an AccordianPane.FindControl() of that control , and attched the eventhandler manually to that... and it was rocking..... Cheers ......

Copyright © Dheeman Dutta | Powered by: GeeksWithBlogs.net