Hi - I am trying to create a project w/o a default namespace but can't
seem to get the hang of it ... Any help appreciated.
Happy New Years,
El Squid
|
|
0
|
|
|
|
Reply
|
tired_of_spaghetti
|
1/1/2010 5:41:31 PM |
|
On 1/1/2010 12:41 PM, tired_of_spaghetti@yahoo.com wrote:
> Hi - I am trying to create a project w/o a default namespace but can't
> seem to get the hang of it ... Any help appreciated.
>
> Happy New Years,
> El Squid
That seems like a weird goal, so I may be misunderstanding your desire.
I don't think you can change the Default Namespace property to "", or
nothing. You can delete the Namespace XXX {} from your code.
--
Mike
|
|
0
|
|
|
|
Reply
|
Family
|
1/1/2010 5:53:34 PM
|
|
tired_of_spaghetti@yahoo.com wrote:
> Hi - I am trying to create a project w/o a default namespace but can't
> seem to get the hang of it ... Any help appreciated.
As Mike says, it's hard to understand what exactly you're trying to do.
Every type in C# must be in a namespace. What would the point of
eliminating the default namespace from the project be? How is having a
default namespace causing a problem for you?
Pete
|
|
0
|
|
|
|
Reply
|
Peter
|
1/1/2010 10:32:36 PM
|
|
Just blank out the 'Default namespace' on the project properties dialog.
--
David Anton
Convert between VB, C#, C++, & Java
http://www.tangiblesoftwaresolutions.com
"tired_of_spaghetti@yahoo.com" wrote:
> Hi - I am trying to create a project w/o a default namespace but can't
> seem to get the hang of it ... Any help appreciated.
>
> Happy New Years,
> El Squid
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
1/2/2010 1:18:01 AM
|
|
Types in C# do not need to be in a namespace.
For a small app which does not expose anything publicly, having everything
in the same namespace doesn't accomplish anything - that extra 'wrapper' is
not required.
--
David Anton
Convert between VB, C#, C++, & Java
http://www.tangiblesoftwaresolutions.com
"Peter Duniho" wrote:
> tired_of_spaghetti@yahoo.com wrote:
> > Hi - I am trying to create a project w/o a default namespace but can't
> > seem to get the hang of it ... Any help appreciated.
>
> As Mike says, it's hard to understand what exactly you're trying to do.
>
> Every type in C# must be in a namespace. What would the point of
> eliminating the default namespace from the project be? How is having a
> default namespace causing a problem for you?
>
> Pete
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
1/2/2010 1:20:01 AM
|
|
On 1/1/2010 8:18 PM, David Anton wrote:
> Just blank out the 'Default namespace' on the project properties dialog.
In VS 2008 Express and VS 2010 Express Beta 2, this gives the message
"The entered value for the property 'Default Namespace' is invalid.
--
Mike
|
|
0
|
|
|
|
Reply
|
Family
|
1/2/2010 2:00:13 AM
|
|
Strange - I have a project started in VS 2005 and it allowed a blank default
namespace and the upgrade to VS 2008 left it blank.
For a new project, you can just manually edit the .csproj file so the the
'RootNamespace' xml entry is blank.
--
David Anton
Convert between VB, C#, C++, & Java
http://www.tangiblesoftwaresolutions.com
"Family Tree Mike" wrote:
> On 1/1/2010 8:18 PM, David Anton wrote:
> > Just blank out the 'Default namespace' on the project properties dialog.
>
> In VS 2008 Express and VS 2010 Express Beta 2, this gives the message
> "The entered value for the property 'Default Namespace' is invalid.
>
> --
> Mike
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
1/2/2010 3:01:01 AM
|
|
David Anton wrote:
> Types in C# do not need to be in a namespace.
Ah, thanks. I misread the spec when I looked that up. Duh.
|
|
0
|
|
|
|
Reply
|
Peter
|
1/2/2010 5:00:22 AM
|
|
|
7 Replies
615 Views
(page loaded in 0.139 seconds)
Similiar Articles: Create a macro in Outlook to run a rule - microsoft.public.outlook ...You use Alt+F11 to open the Outlook VBA project and ... Sub RunRuleDeleteSpam() Dim oNS As Outlook.NameSpace ... So, I ran it w/o breaks and it just shows this but ... How to assign unique number to column duplicates? - microsoft ...Hi All, I need to assign a unique number to a set of duplicates all in one column in Excel 2007. so columnA will has about 9000 numbers, some o... Handling application.quit event - microsoft.public.outlook.program ...I have created a new project in vs2008 just to make sure that i do not release any ... to > get running outlook and then assign o.session to namespace. The code now ... How to Sync Android or iPhone with SBS 2003 - microsoft.public ...... my Windows Mobile phone (Samsung Blackjack I) using ActiveSync on the phone w/o any ... Problem after Active Directory Sync - microsoft.public.project ... How to Sync Android ... vb.net classmanager - microsoft.public.dotnet.languages.vb ...This vb.net 2008 solution has lots of project files in it. You can compile this ... Error 33 The type or namespace name 'completionImport' could not be found (are you ... microsoft.public.project.server - page 2Problem with getting a full backup from sharepoint farm Utf 3 1026 We have a server farm (one virtual machine for SQL2008,one for SharePoint and one for project ... How to handle an exception of type ThreadAbortException -- please ...... Generic; using System.Linq; using System.Text; using System.Threading; namespace ... What is 'The Code Project ... of approaches to handle ThreadAbortException with ... give modify access to domain Users - microsoft.public.windows ...Sam - the user may enter credentials in the following format - domain\username "Sam" wrote: > I make an extranet environment of project web access site. .MDA files to Access 2007 - microsoft.public.accessim new to Access, and have been asked by my project manager to perform this task. ... do this. because the MDA uses authentication.. trying to open it straight-up (w/o ... how to retain data in table only but do not graph of that data ...Data Analysis & Graphs - Science Fair Project Ideas, Answers, & Tools Make sure to clearly label all tables and ... should be of the same scale– (keep L with L and mL ... How to: Create a C# Console ApplicationThe program that you create in this task uses the classes in the System.IO namespace to ... On the File menu, click New Project. The New Project dialog box appears. This dialog ... Manual:Using custom namespaces - MediaWikiNote the use of the constant 500 in defining the namespace. All namespaces require a ... Currently in use by the OmegaWiki project. Extension:SpecialNamespaces, a modified ... How to: Create LINQ to SQL Classes in a Web ProjectThis topic shows how to use the O/R Designer in a Web project to create data classes that ... subfolder of App_Code, the name of the subfolder will be used as the namespace ... eHow | How to Videos, Articles & More - Discover the expert in you ...Learn how to do just about everything at eHow. Find expert advice along with How To videos and articles, including instructions on how to make, cook, grow, or do ... Wikipedia:Project namespace - Wikipedia, the free encyclopediaThe project namespace or Wikipedia namespace is a namespace consisting of pages with information or discussion about Wikipedia. Its namespace number is four (4). 7/13/2012 5:01:13 PM
|