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 7504353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:32:46+00:00 2026-05-29T21:32:46+00:00

Static Classes and Static Class Members In this link Microsoft says, a static class

  • 0

Static Classes and Static Class Members

In this link Microsoft says,

a static class cannot be instantiated. In other words, you cannot use the new keyword to create a variable of the class type. Because there is no instance variable, you access the members of a static class by using the class name itself.

I learned static class the same as stated above. But for the static class Tuple introduced in .NET Framework 4 can have new keyword to create a Tuple.

var population = new Tuple(
“New York”, 7891957, 7781984,
7894862, 7071639, 7322564, 8008278);

Another example

Can anyone explain how is that possible?

  • 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-29T21:32:47+00:00Added an answer on May 29, 2026 at 9:32 pm

    The static Tuple class is a factory class: it’s job is just to provide an easy to way to construct tuples.

    In reality, there are 8 tuple classes in .NET 4:

    • 7 Generic tuples you can create instances of, with up to 8 generic argument: Tuple<T1, T2>, Tuple<T1, T2, T3> and so on.
    • The static Tuple factory class which centralizes construction of the above.

    So, you can’t create an instance of a static class, but you can have several classes with the same name, if they have different generic arguments.

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

Sidebar

Related Questions

Suppose the classes has code like this: class C { public static void show()
Given the following domain classes: class Post { SortedSet tags static hasMany = [tags:
Assume I have the following classes class Genre { static hasMany=[author:Author] } class Author{
Let's say we have these two classes: public class Base { public static int
Lets assume following classes definition: public class A { public final static String SOME_VALUE;
I have a few classes as shown here public class TrueFalseQuestion implements Question{ static{
I have two classes, and want to include a static instance of one class
Possible Duplicate: When to Use Static Classes in C# Questions in the title..........i would
I have a number of static classes that contain tables like this: using System;
How would one initialize static data members of a template class differently for particular

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.