Welcome to Geeks Portal Sign in | Join | Help
in
All Tags » c# » .NET (RSS)
 
 

Browse by Tags

  • Back to Basic: C# Using statement, Return and IDisposable

    In day to day coding, I found myself using a lot of disposable objects like DbConnection, Font, etc. And so, naturally, putting this code block inside a using statement is common sense. In theory, I know that when you use a using block in your code, your code is guaranteed to be disposed without having...
    Posted to Incoherent Rambling (Weblog) by Jimmy Chandra on 06-10-2008
  • Back to Basic: Debug.Assert(...)

    I wonder how many of us litter our code with this particular line? How do you use them? Do you know what you need to watch out when you do use them? Is it necessary to put this line of code in our code? What is the consequence of putting this line into your code? What's the right way to use Debug...
    Posted to Incoherent Rambling (Weblog) by Jimmy Chandra on 06-06-2008
  • Detecting If a Number has a Decimal Fraction

    This seems like pretty basic functionality of a number type, but I can't seem to be able to find any built-in function in any of .Net number type that support decimal (decimal, double) or the System.Math class to do this. In any case, if you find yourself in need to find out if a number has a decimal...
    Posted to Incoherent Rambling (Weblog) by Jimmy Chandra on 05-28-2008
  • On Activator.CreateInstance...

    When you use .NET Activator.CreateInstance to create a new object of a certain type, make sure you reference the Project / DLL that contain the type definition or load it manually somehow to an AppDomain . Otherwise your call will fail. Say you have the following solution: Solution Foo Project Bar1 IUser...
    Posted to Incoherent Rambling (Weblog) by Jimmy Chandra on 04-16-2008
  • Playing Around with Anonymous Type, Extension Method, LINQ, and Generic

    I was reading this particular entry from AlexJ's blog, in which he discussed how to use anonymous type returned from one function in another function. I strongly recommend you read it first before reading any further. Basically, most people would think that there is no easy way to return a strongly...
    Posted to Incoherent Rambling (Weblog) by Jimmy Chandra on 01-20-2008
  • The evolution of Delegate, Anonymous Method, Lambda Expression

    Here's I am going to write something about the evolution of Delegate, Anonymous Method, till Lambda Expression. Here's I will use a build in delegate, Predicate<T> to give the example. My example is simple. There's a collection of integer (I call it intList). I fill it up with numbers...
    Posted to Wely (Weblog) by very_wel on 12-18-2007
  • Listen to C# 3.0 at the morning, Talk about C# 2.0 at the evening

    Yesterday morning I join MSDN Day - Visual Studio 2008. The first session is the most interesting one that I've been waiting for times. Yeah C# 3.0. Mr Norman presented "what's new in C# 3.0". It was great. At the evening, I trained about .NET Framework and C# 2.0 to others BinusCenter's...
    Posted to Wely (Weblog) by very_wel on 09-01-2007
  • Have you use Generic’s collection?

    We often need collection in our programming. To implement collection, we have two choices: fixed-length collection which is familiarly "array" and dynamic length collection. One of the popular dynamic collections is ArrayList. ArrayList (actually Queue, Stact, other collection also) accepts...
    Posted to Wely (Weblog) by very_wel on 07-14-2007
  • Back to ASP :-)

    Most of people begin in ASP and VB6 before step in to .NET. I myself, vice versa. I had learned .NET first, then later came with VB6. Last week I began a Bina Nusantara Cooperate website ( http://www.binus.edu/ ) with ASP.NET and C# (was developed by ASP). This is not a huge or enterprise project, where...
    Posted to Wely (Weblog) by very_wel on 05-09-2007
  • A practical "polymorphism" example

    In my last post, I described what interface and abstract class are, how to create and use them. But, the question is “Why do we need to use interface or abstract class?”, “Is it useful?”, “What if we don’t use them?”. Actually, the primary reason of using them...
    Posted to Wely (Weblog) by very_wel on 03-26-2007
Page 1 of 2 (15 items) 1 2 Next >
 
 
Powered by Community Server (Commercial Edition), by Telligent Systems
Copyright © INDC, 2006. All rights reserved.