Sunday, 26 July 2015

What is Interoperability in C#.Net

                The earlier .Net languages can interoperability with each other.  i.e The code written in one .Net language after compilation can be consumed from any other .Net language. To check this add  a new project under my solution choosing the language as visual basic , template as class library and name the project as vb project. A class library is a collection of type which can only be consumed but not executed.

What is O-R Designer

             To convert relational types into object-oriented types we were provided with a tool OR Designer. OR stands for Object Relational.

What is Managed Code and Unmanaged Code in .Net

  The code which executes under the framework environment is known as Managed Code .

   The Code which execute directly under the operating system i known as unmanaged code.

Can we consume class of a project from class of the same project?

              Yes, we can consume them directly as both these classes were under same project and were considered as a family.

what is constructor in .net

 Constructor :   Constructor was special method present in every class responsible for initializing the variables of a class. the name of a constructor method is same as class name. A constructor  method was non-value returning method. Every class requires a constructor . If at all it has to execute.

            [ <Modifiers>] <name>([<param def's>])

Constructors are two types :
  1. Default Zero argument constructor.
  2. Parameterized constructor.

What is an Enumeration in C#.Net

        It was a property for which we can fix the type of values which can be assign to you. this values has to be first stored under on enum which was a collection of values.

Syntax : 

      [<Modifier>] enum<name>{[List of values]};

Eg : 

public enum days {monday; tuesday................. friday;}

  • A property which is define by using the enum as a type was an enumerated property.
  • An Enum can be declared either under a class or under a namespace also.
  • As on Enum is also a type if cannot be consume directly . To consume if first we need to created a copy on it.
Eg : Days Weekday=0

Days  weekdays = days.monday;

Enumerated Property : 
                Public Days Weekday
                     get { return Weekday;}
                      set { Weekday = value;}

How to find the last character of the word in Array using

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StringArray
    class Program
        static void Main(string[] args)
            string[] strArray = { "GURU","SIVA","KEDAR","RAMU","CHAITHU" };

            ArrayList arr = new ArrayList();
            for (int i = 0; i <strArray.Length  ; i++)
              string strget = strArray[i].ToString();

                int len = strget.Length;

                if (strget[len-1]=='U')
            foreach (string  item in arr )

Sunday, 19 July 2015

How to merge Two Datesets in .Net

        Dataset s = new DataSet();

        Dataset s1=new DataSet();



what is CLI Specification in .Net

                      CLI Stands for common language infrastructure. It is open specification given by the Microsoft and submitted to ECMA(European Computer manufacture Association). It provides set of rules that are to be followed to work with multiple programming languages at one place.

What is difference between ArrayList and Array

ArrayList can store dissimilar type of values and size is Dynamic.
Array can store similar type of values and size is static.