C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




plz help


Posted Date: 01 Sep 2008      Total Responses: 2

Posted By: shilpa taneja       Member Level: Silver     Points: 1



what is guid??why it is used??
what is version no..?
is version no has any relation with giud..?
how .net framwork associates guid with any assembly?





Responses

Author: Kapil Deo Malhotra    01 Sep 2008Member Level: GoldRating:     Points: 3

GUID -Globally Unique Identifier. As its name suggest it is unique identifier or number which can distinguish from one component to another one.

Every component or application and its depends has the version number so the application or product can be identified based on the version number.

Version number does not have any link with GUID.



Author: Appukuttan    01 Sep 2008Member Level: DiamondRating:     Points: -20

Hi..

A Globally Unique Identifier (GUID) is a 128-bit integer that you can use across all computers and networks wherever a unique identifier is required.

ossessing a unique identifier makes it easy to store and retrieve information. This is especially useful when working with a database because a GUID makes an excellent primary key.

Also, SQL Server integrates well with GUID usage. The SQL Server data type uniqueidentifier stores a GUID value. You can either generate this value within SQL Server—using the NEWID() function—or you can generate the GUID outside of SQL Server and insert it manually.

The latter approach is a straightforward process in .NET. The base System class in the .NET Framework includes the GUID value type. In addition, this value type includes methods to work with GUID values. In particular, the NewGUID method allows you to easily generate a new GUID.

The following C# command-line application shows how it's used:

using System;

namespace DisplayGUID {

class GuidExample {

static void Main(string[] args) {
GenerateGUID();

}

static void GenerateGUID() {
Console.WriteLine("GUID: " + System.Guid.NewGuid().ToString());

} } }

Here's the output of the program (though the GUID will vary from system to system):

GUID: 9245fe4a-d402-451c-b9ed-9c1a04247482



Post Reply
You must Sign In to post a response.
Next : Kinds of inter operations in .NET framework?
Previous : Textbox Amount
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use