[010]LINQ To Objects:Retrieving data from a class collection |
In order to view or download this training package you have to buy this training package or to be a subscribed user.
REGISTER NOW
|
ORDER NOW
|
|
|
|
|
|
|
| |
[021] params statement |
21/04/2013 |
|
The params keyword enables method to retrieve an unknown number of variable of the same type.
In the next code,we can see the way of sending values to a method that getting an unknown number of values of the type int. |
|
Download: Source Code |
|
|
|
| |
[023] Classes |
21/04/2013 |
|
The Class belongs to the reference types family and able to contain: classes,structs,interfaces etc.
The Class is able to inherite from other classes and contain other objects that have a functionality.
In the next code we can see the way to define a Class and the way of getting his members by using the this keyword. |
|
Download: Source Code |
|
|
|
| |
[024] Properties |
21/04/2013 |
|
Properties are methods that called also accessors that provide a flexible mechanism to control the access to values of private fields.
In the next code,we can see how to define a propeties,how to control the getting and outing values to a variable by using the set-get accessors. |
|
Download: Source Code |
|
|
|
| |
[025] Constructors |
26/01/2018 |
|
Constructor is a method that executes when an instance of object is been created.
The purpose of this method is to intialize fields in an object and make some actions when an object is first created.
In next code we can see initializing fields of an object of type Point with a default values when an object is created. |
|
Download: Source Code |
|
|
|
| |
[026] Overloading Constructors |
26/01/2018 |
|
Overloading Constructors gives us the ability to initilize fields of an object in many ways.
In the next code,we can see how to overload constructors by creating each object with a different number and type of values. |
|
Download: Source Code |
|
|
| |
|
|