четверг, 9 сентября 2010 г.

Git commands

понедельник, 19 апреля 2010 г.

C# Interface

It's my first short tutorial.
How to use C# interface with class.
An interface contains only the signatures of methods, delegates or events.

Interfacae - its a rule,which describe a class.

For example:


//Our interface name is : ILexSource
interface ILexSource
{
int CurrentLexValue { get; set; }// Set and get? what is it? how to use it? :)
}
class scaner : ILexSource
{
private ICharacterSource source;

public scaner(CharacterSource source)
{
this.source = source;

}
//Method which has the same name as class is called - "CONSTRUCTOR"
What is it constructor? - When you are calling an instance,class automaticly calling a constructor :)


//SECOND INTERFACE

public interface ICharacterSource
{
void nextChar(); //Void it's a procedure,without a return type.
}
class CharacterSource : ICharacterSource
{
string mainString; //our test string
public CharacterSource(string str)
{
this.mainString = str;
}

public void nextChar()
{

Console.Write("YEAS I DID IT!);
}

}

How to use it.. ? :)

scaner Comp = new scaner(new CharacterSource(str); //here we are

Q:How can I call second class from first class?
A:Its very easy,in first class you should write a classs an alias.

private ICharacterSource source;


You can use it anywhere in class :)
Like this.

Source.nextChar(); //YEAS I DID IT!


That's all!
It's my first blog in english. :) Please comment it:)

среда, 13 февраля 2008 г.

среда, 12 декабря 2007 г.

Till I Collapse

Sometimes you just feel tired. You feel weak. And when you feel weak, you feel like you wanna just give up. But you gotta search within you, try ta find that inner strength and just pull that shit out of you, and get that motivation to not give up, and not be a quitter, no matter how bad you wanna just fall flat on your face and collapse.

четверг, 29 ноября 2007 г.

Hey you, can't you see?

Para de jugar con mi corazón.
Para de jugar con mi corazón.
Para de jugar con mi corazón.
Para de jugar con mi corazón,
porque yo ya no quiero sufrir,
porque yo ya no quiero sufrir.

Hey you, can't you see?
She's playing with your heart.
She's playing with your heart.
Hey you can't you see?
She's playing with your heart.
She's playing with your heart.

Maybe I'm addicted,

Maybe I'm addicted,
I'm out of control,
but you're the drug
that keeps me from dying.
Maybe I'm a liar,
but all I really know is
you're the only reason I'm trying....

вторник, 11 сентября 2007 г.

m..
My first blog..in bloogger.com..
strange m?...what can i tell ...you..
I Forgot.. :(
..... i really want to find a new job..because i really need a money for uneversity..
gr.. it`s to hard to find it..
Today I was in meeting...there was a lot of people..it`s a very big rich building...
they will give me a link.... and after 14 days will be a test exams... - strange no?...
The work with computer.. - like test engenering..