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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:24:02+00:00 2026-06-05T17:24:02+00:00

I have a Utils unit in my app which, as of right now, only

  • 0

I have a Utils unit in my app which, as of right now, only has a few enums defined, such as:

public enum MostFavoredStates
{
    California,
    NorthCarolina,
    Vermont,
    NewMexico
}

public enum LeastFavoredStates
{
    NorthDakota,
    Illinois,
    Nebraska
}

public enum StatesInWhichIHaveResided
{
        California,
        NewYork,
        Montana,
    Alaska,
        Oklahoma,
        Wisconsin,
        Idaho,
        Missouri
}

When I run ReSharper on my project, it says I need no “using” statements at all in this class; so, I remove them all, and voila! it really does need nothing at all.

“enum” must be declared somewhere – how can it live without a reference to that assembly or namespace? If there’s something “baked in” to every class, what is it?

  • 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-06-05T17:24:04+00:00Added an answer on June 5, 2026 at 5:24 pm

    “enum” must be declared somewhere – how can it live without a reference to that assembly or namespace? If there’s something “baked in” to every class, what is it?

    “enum” is a C# language keyword. It is not a framework type that needs to be resolved, as it’s part of the language itself.

    Note that there are many other language keywords that are this way. For example, you can use int without a using clause for using System;, as it’s “baked into” the language as an alias to System.Int32 – but you can’t use Int32, since that is System.Int32.

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

Sidebar

Related Questions

I have a simple Java class that has some methods: public class Utils {
I have created a public static class utils.cs I want to use it in
Lets say I have a few utility functions in file tests/utils/functions.js. I would like
I have been debugging some existing code for which unit tests are failing on
How can I write unit tests for existing and already implemented code which has
I have this unit test: public void testDeEscapeResponse() { final String[] inputs = new
I have set of Visual Studio solutions which have unit tests. I want to
I have a unit test projects which requires some external dependencies. Those dependendies come
I want to have a helper classes such as Convert or Utils in my
I have a simple Action class which I want to unit test: package com.gam.action.test;

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.