473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

GetType(Object).GUID <- What does the GUID represent?

Hi all,

I'm using the command GetType(MyObject).GUID to return a GUID. Is the GUID
a CRC type calculation on the object, or is it a pre-assigned value on the
object?

I was hoping to have a way to do a CRC type calculation on an object to see
if it has changed or has been tampered with.

Thanks.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #1
2 4181
"Lucas Tam" <RE********@rogers.com> schrieb:
I'm using the command GetType(MyObject).GUID to return a GUID. Is the GUID
a CRC type calculation on the object, or is it a pre-assigned value on the
object?
The returned GUID is type's class identifier (class ID, CLSID). MSDN:

---
Class identifier (CLSID)

A globally unique identifier (GUID) associated with an OLE class object. If
a class object will be used to create more than one instance of an object,
the associated server application should register its CLSID in the system
registry so that clients can locate and load the executable code associated
with the object(s).
---

The class identifier is a pre-assigned value that doesn't have much to do
with the object, but with its type.
I was hoping to have a way to do a CRC type calculation on an object to
see
if it has changed or has been tampered with.


'Type.Guid' is not the right way to do that.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in
news:ON*************@TK2MSFTNGP11.phx.gbl:
I was hoping to have a way to do a CRC type calculation on an object to
see
if it has changed or has been tampered with.


'Type.Guid' is not the right way to do that.


Any built in functions that come to the top of your mind that can generate
a CRC on a DLL (or object)?

Thanks.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Horst Klein | last post by:
I want set different properties of any object at runtime. With the Function below it works well, but not perfect Is there a way to set properties of any type with its value Principle...
3
by: johan Goris | last post by:
ObjectR is an ObjectA ObjectS is an ObjectA .... public ObjectA Copy(ObjectA oa) { return ..... // new ObjectR when oa is an ObjectR .. // new ObjectS when oa is an ObjectS.... }
9
by: Yan Vinogradov | last post by:
Hi, Turns out it's possible to spoof another type with Object.GetType method. If you do this: namespace N { class C { public new Type GetType() { return (String.Empty.GetType()); }
2
by: Razzerroo | last post by:
Still on my quest to convert my company's VB.NET code to C#. Here's the line I need to convert VB.NET System.Runtime.Remoting.RemotingServices.Connect(GetType(ISensor), strURL)) where...
3
by: Michael | last post by:
Hi all : in vb.net I know use the follow code can implement dynamic call Dim asm As = .LoadFrom(<FileName>) Dim ty As Type = asm.GetType(<Object Name and class name>) Dim obj As Object =...
5
by: Matthew | last post by:
I have a nice little Sub that saves data in a class "mySettings" to an XML file. I call it like so: Dim mySettings As mySettings = New mySettings mySettings.value1 = "someText" mySettings.value2...
3
by: Joe Adams | last post by:
Hi All, How can I use GetType(<GenericType>).IsAssignableFrom(<MyType>) I need to now if the <MyType> is the same type of class as the <GenericType> without having to add the generic type...
3
by: Tony Johansson | last post by:
Hello!! You may correct me if I have made any wrong assumptions. Below I have some simple classes. When you have this t.ToString() below it's the ToString() method in Object class that is...
10
by: Arpan | last post by:
Consider the following code that adds a table to a DataSet dynamically: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) 'Create an empty DataSet Dim dSet As...
2
by: stktung | last post by:
Hey guys, Are there functions in reflection that gives information about the base classes of an object? Thanks in advance -Steve
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.