guid Questions

10

Solved

I'm new to C#. I know in vb.net, i can do this: Dim guid as string = System.Guid.NewGuid.ToString In C#, I'm trying to do String guid = System.Guid.NewGuid().ToString; but i get an "Cannot...
Iinde asked 9/11, 2009 at 11:1

3

Solved

I want to generate a consistent hash of a UUID string such as dcc549d8-bd0c-49c2-bff8-f6fa80fb7857, preferably a number between 0 to N. What is the best and fastest way to do it? Update: I am thi...
Hamiltonian asked 10/1, 2020 at 17:4

5

The default value for int is 0 , for string is "" and for boolean it is false. Could someone please clarify what the default value for guid is?
Cuttlefish asked 22/6, 2015 at 10:29

8

Solved

The standard string representation of GUID takes about 36 characters. Which is very nice, but also really wasteful. I am wondering, how to encode it in the shortest possible way using all the ASCII...
Raleighraley asked 13/5, 2010 at 14:35

4

What would be the easiest way to code a function in .NET to generate a GUID based on a seed so that I can have greater confidence about its uniqueness? string GenerateSeededGuid(int seed) { /* cod...
Crackup asked 2/11, 2012 at 2:3

1

I'm trying to set a default value NewGuid() to a UUID/GUID column in MySQL 5.7 (with FluentMigrator in .Net Core). Create.Table("table") .WithColumn("auto_guid").AsGuid().NotNullable().WithDefault...
Duclos asked 16/9, 2019 at 17:17

7

Solved

I'm looking to use some sort of unique identifier within a .resx file but it does not allow the key to begin with a number. Rather than cycling through GUIDs until I get one that starts with a lett...
Ostiole asked 5/9, 2013 at 20:48

5

Solved

I assigned some value to object data type like, object objData =dc.GetDirectoryEntry().Properties["objectGUID"].Value; this object retun the value like {byte[16]} [0]: 145 [1]: 104 [2]: 117 ...
Zoo asked 2/6, 2012 at 12:4

3

I am looking for a way to indentify DOCX files if they are moved or renamed. Reason is obvious, I am playing with the Open XML SDK, building a hyperlink checker. Works perfect, at least it can add...
Lauryn asked 14/3, 2009 at 4:59

4

Solved

How can I convert a .NET GUID to a MongoDB ObjectID (in C#). Also, can I convert it back again to the same GUID from the ObjectID?
Olwen asked 1/4, 2011 at 13:32

5

Solved

I see these two acronyms being thrown around and I was wondering if there are any differences between a GUID and a UUID?
Monolatry asked 29/10, 2008 at 14:9

1

Solved

My requirement is to generate version 4 UUID from C# code for google API session token and i am not sure Guid.NewGuid() method, Which version of GUID does it return. Like version Read google and ...
Tashia asked 24/4, 2019 at 6:12

6

Solved

So in C# the switch statement only supports integral types (not Guids), so a simple O(1) comparison table doesn't look possible. What is the most computationally efficient way to match on a Guid ...
Tincher asked 22/6, 2012 at 12:20

5

I have sent 10000 mails to our customers and each mail had a link of the format http://example.com/LogIn?key={guid} Unfortunately the guid I sent were random guids (test data generated by Guid....
Topography asked 3/5, 2009 at 12:1

3

Solved

I'm assigning all my MongoDB documents a GUID using uuid.uuid1(). I want a way I can derive an 11 character, unique, case-sensitive YouTube-like ID, such as 1_XmY09uRJ4 from uuid's resulting h...
Mil asked 4/9, 2012 at 20:24

1

Solved

If I have a model with a key of type Guid, is it bad practise to set the ID explicitly in the constructor? I know it will be set implicitly by Entity Framework, but will anything bad happen (perha...
Dot asked 20/11, 2018 at 14:0

2

Solved

Since they contain dashes and only hexadecimal characters, wouldn't random strings (incl. special characters) have way more possible combinations? I know them being a standard is an advantage, bu...
Complex asked 10/10, 2018 at 13:0

3

Solved

How is GUID internally stored and compared by SQL (particularly MS SQL server 2008)? Is it a number or string? Also, is there a big performance hit when using GUID as primary key? Besides the pro...
Endotoxin asked 13/5, 2013 at 11:35

5

Solved

How can I list the GUID of an installed program in Windows? Alternatively, is it easier to find the GUID if I have the MSI file? I'm looking through the MSI file with Orca but not sure where to l...
Sorcim asked 28/6, 2012 at 18:48

5

Solved

In oracle 10g, how do you convert SYS_GUID() to varchar? I am trying something like: select USER_GUID from user where email = '[email protected]' Which returns the RAW byte[]. Is it possibl...
Shiah asked 2/3, 2009 at 18:49

3

I've decided to use GUID as primary key for many of my project DB tables. I think it is a good practice, especially for scalability, backup and restore in mind. The problem is that I don't want to ...
Tryst asked 16/10, 2012 at 22:10

9

Solved

Before you start marking this as a duplicate, read me out. The other question has a (most likely) incorrect accepted answer. I do not know how .NET generates its GUIDs, probably only Microsoft doe...
Candent asked 12/4, 2010 at 11:14

2

Solved

I have searched multiple resources online, but so far have been unable to find a definitive answer to the question of whether Microsoft's GUID generation mechanism is secure enough to warrant it's ...
Tumult asked 1/7, 2013 at 15:49

3

Solved

Why are UUID's presented in the format "8-4-4-4-12" (digits)? I've had a look around for the reason but can't find the decision that calls for it. Example of UUID formatted as hex string: 58D5E212...
Namtar asked 21/5, 2012 at 14:47

2

Solved

This is the best way I could come up with to convert a MySQL GUID/UUID generated by UUID() to a binary(16): UNHEX(REPLACE(UUID(),'-','')) And then storing it in a BINARY(16) Are there any impli...
Pursuivant asked 13/2, 2009 at 18:27

© 2022 - 2024 — McMap. All rights reserved.