Quote of the day: A Big Fat Lie - Time Heals All Wounds.

Sunday, September 20, 2009

Friend

Losing a friend is harder than what people think
I lost my one and only friend

My Friend

Is the decision to end the friendship
comes from heart or from mind?

How do I walk away from someone,
who is my only friend.
I wish I could start over again.

We have shared so much together,
tears...fun times and laughter.
The times we've chatted...
and the times you've blocked me.

I don't want to let you go,
but I know I must.
My heart says stays...
but its my mind I trust.

I know you are hurt,
but Am sure one day you will be happy.

Sunday, September 13, 2009

Miss you

Missed you everyday

when I was in the mood
for quiet conversation...
when it was Friday
for little Friday night fights
when I found myself
with some free time
when I had something
wanted to share

Missed you more each time,
I thought of you
And I have been thinking,
about you all day!




Missing you

Sitting at home lonely again
Thousand miles away in pain

Every morning I woke up
You are on my mind
Waiting for the day
When I will see your face again

Remembring our times
The good and the bad
The funny and the sad

Wondering, what happened to me?
I was never that weak
God only knows what you are to me

Remembering your little things
The laptop and the tea
The iPhone application and me

Wondering, when we'll be together again?
I can't make a month without seeing you.
You are my world, You are my smile

Thinking of you so often
Missing you so much
Just wondering if you think
of me and miss me too.

Wednesday, July 22, 2009

Life

Life is full of choices
Choose the right one
Don't listen to anyone
Listen Only your hearts voice
And am sure you will won

People may tell you
Do this Do that
Don't take their views to your heart
Someone will always be with you
And am sure you know who

Tuesday, July 14, 2009

My Favorite Quote

"The truth is I can't be with you like this. I mean, I know I said that I could, but I can't. I just can't compromise myself like that. I mean I'm an emotional person. I feel things and I need to be able to get upset and talk about how I'm feeling. I mean that's just...that's who I am and I can't change it. I don't want to. And the thing is you know that, you knew it and you still pursued me because you want something with me, you just aren't strong enough to have it which...in a way makes you a coward. And the saddest part is that...one day you're gonna wake up and you're gonna realize what you missed and it's gonna be too late. "

By Keri Russell

Tuesday, May 26, 2009

Indexers in C#

Indexers

Indexers are also called as smart Arrays in C#. Indexer allows your class to be used like an array. An indexer allows you to use an index on an object to obtain values stored within the object. In other words, it enables you to treat an object like an array and access that object using [ ] array access operator.

Defining an indexer is same as defining properties. Like properties, you use get and set when defining and indexer. Properties are defined using property name but with indexers, instead of creating a name, you use this keyword.

The format for defining an indexer is

this [argument list]
{
get
{
// Get code goes here
}
set
{
// Set code goes here
}
}



Indexer modifier can be private, public, protected or internal. The return type can be any valid C# types. The ‘this’ is a special keyword in C# to indicate the instance of the current class. Indexers in C# must have at least one parameter. Other wise the compiler will generate a compilation error.

Example of Indexer:



using System;
using System.Collections.Specialized;
namespace IndexerExample
{
class PhoneBook
{
ListDictionary nameDictionary = new ListDictionary();
public String this[string name]
{
get
{
return nameDictionary[name].ToString();
}
set
{
nameDictionary.Add(name,value);
}
}
}
class program
{
public static void Main()
{
PhoneBook phoneBook = new PhoneBook();
phoneBook["Joe"] = "111-111-1111";
phoneBook["Jessica"] = "222-222-2222";
phoneBook["John"] = "333-333-3333";
phoneBook["Jade"] = "444-444-4444 ";
phoneBook["Jevon"] = "555-555-5555";

Console.WriteLine("Indexer Example\n\n");
Console.WriteLine("{0}\n{1}\n{2}\n{3}\n{4}\n", phoneBook["Joe"], phoneBook["Jessica"], phoneBook["John"], phoneBook["Jade"], phoneBook["Jevon"]);
Console.WriteLine("\n");
Console.ReadLine();
}
}
}

Thursday, May 14, 2009

Tribute to my old friends

Oh! Those dear Old Friends
I luv to remember them.

How we laughed, How we enjoyed.
The mornings, The evenings and the nights,
We made each other happy.
Never came an occasion to be Sorry.
We were merry and carefree,
Nothing in this world could make us worry.

Oh! Those dear Old Friends
I luv to remember them.

Today they aren't with me
Yet I have their loving memories.
Can I ever forget them
who made my moments merry.
A bond of luv and friendship
unbreakable, strongest relationship.

Oh! Those dear Old Friends
I luv to remember them.

Setting be the sun, long be the shadow
Still Greenery remains in the meadow.
Thats the way I think of them,
Even though I know they cant come
But I wish one day we will meet again,
together we will roam about.

Oh! Those dear Old Friends
I luv to remember them.