How do I prevent the name of the Solution Folder in a VS project from being appended to the namespace generated for new items added to the solution folder?
Example: C# project in a VS solution
Default Namespace set in C# project properties: "BigClient.Domain"
If you create a solution folder in this project called "MySpecialStuff" and t...
I have been trying to learn more about the C# language, but I haven't been able to see a situation where one would use namespace aliasing like
using someOtherName = System.Timers.Timer;
It seems to me that it would just add more confusion to understanding the language.
Could some one please explain.
Thanks
...
So I'm having to run someone else's excel app on my PC, and I'm getting "Can't find Project or Library" on standard functions such as date, format, hex, mid, etc.
Some research indicates that if I prefix these functions with "VBA." as in "VBA.Date" then it'll work fine.
Webpages suggest it has to do with my project references on my sys...
meaning is there a difference between
<WebService(Namespace:="http://theurl.com/")>
and
<WebService(Namespace:="http://www.theurl.com/")>
?
...
I'm new to C#, and am curious about best practice for using namespaces.
I have a solution that contains a single class library project, along with several, small console app projects. All the console app projects do is parse command-line arguments and call different classes within the library project. The library project uses the stan...
I renamed my project from MyProjectName to MyNewProjectName. I did a complete find/replace on the solution and changed the test project aswell. In Default.aspx.cs I get an InvalidOpterationException with
"The controller name 'Home' is ambiguous between the following types:
MyNewProjectName.Controllers.HomeController
MyProjectName.Con...
I'm having some problems to come up with a sane type naming scheme for our new line of applications. I want to follow the .NET Framework Developer's Guide - Design Guidelines for Developing Class Libraries, but I'm starting to wonder if that's such a good idea.
I'd like to use the Company.Product.Feature namespace scheme as a basis.
Pr...
How do you guys organise your asp.net web applications?
Do you have you classes in the applicaiton, or in a seperate class library?
How do you split your classes into name spaces, by type, function, tier?
I've got a great working applicaiton, but the codes a bit messsy, I want to look at the best way to organise it.
...
I'm trying to incorporate Linq to Lucene in my Asp.net-mvc project.
As with most web projects, I use the PagedList type I put in my personal helper library and use it all over the place.
But so did Linq to Lucene...
Since both my library and the L2L library want to add the PagedList type to System.Collections.Generic namespace, I get a c...
I am looking for example Java code that can construct an XML document that uses namespaces. I cannot seem to find anything using my normal favourite tool so was hoping someone may be able to help me out.
...
I'm trying to use XPath to find all elements that have an element in a given namespace.
For example, in the following document I want to find the foo:bar and doodah elements
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foo="http://foo.example.com">
<foo:bar quux="value">Content</foo:bar>
<widget>Content</widget>
<doodah ...
I have a small namespace containing some type definitions, which I use to make my code look cleaner. However I don't want to have to add a "using namespace ..." line to every file that uses one of these types, after all I already have to add a #include for the file.
MyFile.cpp:
#include "typedefs.h"
void Bob()
{
IntList^ list = gcne...
Many of us have a personal repository where we keep our code. Sometimes it's just our hobby code, some people include code from their jobs (shame!), but many of us have a repository in one form or another.
This is complicated by the fact that alot of us work in many spaces (Web Development, Windows and Web Services, Console apps) and ma...
Why do some languages, like C++ and Python, require the namespace of an object be specified even when no ambiguity exists? I understand that there are backdoors to this, like using namespace x in C++, or from x import * in Python. However, I can't understand the rationale behind not wanting the language to just "do the right thing" whe...
I read that "the default namespace is important because otherwise the XAML parser will not recognize the elements".
However, just as a test, I take it out and, although the visual designer cannot recognize the element names anymore, this Silverlight XAML runs just fine:
<UserControl x:Class="Second12.Page"
xmlns:x="http://schemas.m...
Is there a way to tell .Net to search for a namespace from the root of the namespace tree?
Say I have these two, completely independent, namespaces:
Apple.Orange.Banana
Orange.Grape.Peach
Assume they came from different programmers and the "Orange" in each one is completely coincidental.
If I'm inside "Apple.Orange.Banana" and I try...
What is the best way to represent in java a "choice" namespace tag?
ie.
<xs:complexType name="MyType">
<xs:sequence>
<!-- common elements here -->
<xs:element type="xs:string" name="name" ... />
</xs:sequence>
<xs:choice>
<xs:element name="stringValue" type="xs:string"></xs:element>
<xs:element name="intValue" type...
I am using trang to convert a RELAX NG .rng file to an XML Schema .xsd file for use with JAXB. Is there a way to put attributes/elements in the .rng file and have them show up in the .xsd file? I have an external .xjb file that I use for JAXB settings, but there are some JAXB settings that are very closely coupled to the schema itself a...
In C++ you can often drastically improve the readability of your code by careful usage of the "using" keyword, for example:
void foo()
{
std::vector< std::map <int, std::string> > crazyVector;
std::cout << crazyVector[0].begin()->first;
}
becomes
void foo()
{
using namespace std; // limited in scope to foo
vector< ma...
So, I'm looking at using Smalltalk/Squeak for a couple of hobby/academic interest projects, and while trying to read up on the language I came across this nice article. However, this paragraph had me a bit dumbfounded:
"Unfortunately, there is a complete lack of standardization for providing or dealing with modules/packages in Smallt...