Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6223007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:24:55+00:00 2026-05-24T08:24:55+00:00

I want to define User Define Guid in C#. I want to insert this

  • 0

I want to define User Define Guid in C#. I want to insert this in my Guid object:

dddddddddddddddddddddddddddddddd.

When I do this:

Guid user = "dddddddddddddddddddddddddddddddd";

I get the err: System cannot convert from String to System.Guid. What should I do here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:24:57+00:00Added an answer on May 24, 2026 at 8:24 am

    It sounds like you want:

    Guid user = Guid.Parse("dddddddddddddddddddddddddddddddd");
    

    Note that when you print the guid out again, it will be formatted differently:

    // Prints dddddddd-dddd-dddd-dddd-dddddddddddd
    Console.WriteLine(user);
    

    You could call the Guid(string) constructor instead, but personally I prefer calling the Parse method – it’s more descriptive of what’s going on, and it follows the same convention as int.Parse etc. On the other hand, Guid.Parse was only introduced in .NET 4 – if you’re on an older version of .NET, you’ll need to use the constructor. I believe there are some differences in terms of which values will be accepted by the different calls, but I don’t know the details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a stored proc were I want to insert a GUID (user id)
So I have a file for constants. I want to let user define them
At first sorry my bad English. I want define routing for this url: For
I want to define a Nibble type. I want that if the user sets
Ok SO, I have a user table and want to define groups of users
I am a ruby newbie. I want to define a parm user something like:
How can i benchmark a website ? i want to define how many user
I want to learn that if I can define user input parameters at bean
From the MSDN docs for create function : User-defined functions cannot be used to
I'm trying to Create user define $ function as i cannot use Jquery in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.