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

  • Home
  • SEARCH
  • 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 7072523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:49:09+00:00 2026-05-28T05:49:09+00:00

If I have namespace with two classes. I want to use class from one

  • 0

If I have namespace with two classes. I want to use class from one namespace and I have Resharpner tool. Even I select full qualifies name of my Font class it will use Font from System namespace. How to use label and will it removed debugging capability

using System.Windows.Forms;

using Cy.GlobalSettings.ChartSettings;

but have problem

current namespace is Cy.GlobalSettings.ChartSettingsUC;

Font class has a confilct?

  • 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-28T05:49:10+00:00Added an answer on May 28, 2026 at 5:49 am

    You can rename classes if the class name is the same in both referenced namespace. If both namespace have a class called Font you can create an alias for a namespace or a type:

    using System.Windows.Forms;
    using Cy.GlobalSettings.ChartSettings;
    using CyFont = Cy.GlobalSettings.ChartSettings.Font // This is the full name of the Font class which is causing the conflict. 
    
    
    Font y; // class from System.Windows.Forms
    CyFont x; // class from Cy.GlobalSettings.ChartSettings
    

    After this you can use both Font and CyFont in your code without conflicts.

    using Directive (C# Reference)
    http://msdn.microsoft.com/en-us/library/sf0df423(v=vs.80).aspx

    Fully qualified name should work as well.

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

Sidebar

Related Questions

I have two namespaces: 1) Foo.Bar 2) Another.Foo.Bar From a class in namespace 2,
I have two classes, one inherited from the other. When I compile, I get
I want to add swap functionality to two existing C++ classes. One class inherits
I have two classes: namespace Something { [Serializable] public class Spec { public string
I have two classes one and two . Both run threads. class Two is
Suppose I have two classes with identical members from two different libraries: namespace A
I have two classes one is derived from CheckBoxList and the second one from
So I have one main file, and two classes: A display Class, and a
I have two classes: a base class (Animal) and a class deriving from it
I have two classes: Action class, that has a method for executing VBScript files,

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.