How To Declare And Use A Complex Object In Asp.Net


show more Declaring and using a complex object provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training show less
please wait ...

Declaring and using a complex object

When you declare a variable, its data type can either be a simple value or a complex object. Simple values include data types like those I showed in a previous video, including strings, Booleans and numeric values. Complex objects are instances of classes. In Object Oriented terminology, a class is a definition of a bit of software and when you create an instance of that class it's called an object. In this demonstration I'll show you how to declare an instance of a class where an object in both C# and in Visual Basic, and the particular type of object that will use is a DateTime value. This is represented as the DateTime class and you use the same class in either language.

I will start will C#. I'll open the page ProgrammingCSharp.aspx and then I'll save it as ObjectCSharp.aspx. Then I'll place the cursor inside the runbutton_Click function and I'll first create an instance of the DateTime class using the following syntax. I'll start with DateTime and I...

Declaring and using a complex object
Video duration: 6m 16s 6h 24m Beginner Updated Feb 13, 2013

Viewers:

Declaring and using a complex object provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training

Subjects:
Developer Web
Software:
ASP.NET
Author:
please wait ...