Questions tagged [fully-qualified-naming]
75 questions
46
votes
9 answers
Regular expression matching fully qualified class names
What is the best way to match fully qualified Java class name in a text?
Examples: java.lang.Reflect, java.util.ArrayList, org.hibernate.Hibernate.

Chun ping Wang
- 3,879
- 12
- 42
- 53
45
votes
2 answers
What is the fully qualified name of a friend function defined inside of a class?
What is the fully qualified name of a friend function defined inside of a class?
I recently saw an example analogous to the following. What is the fully qualified name of val() below?
#include
namespace foo {
class A {
int…

Szabolcs
- 24,728
- 9
- 85
- 174
24
votes
3 answers
XML Comments - Should see references be fully qualified?
Basically, when is it truly necessary (if at all) to use a fully qualified xml see reference:
//Option 1
//Option 2
Also, what about referencing to the .NET Framework objects?

myermian
- 31,823
- 24
- 123
- 215
12
votes
1 answer
Impossible to fully qualify class-name in out-of-class declarator of function definition
This program results in an undesired parsing greediness dead-end:
struct float4x4 {};
class C
{
float4x4 M();
};
float4x4 ::C::M()
{
return float4x4{};
}
:8:1: error: no member named 'C' in 'float4x4'; did you mean simply 'C'?
float4x4…

v.oddou
- 6,476
- 3
- 32
- 63
11
votes
1 answer
Ambiguity in a fully qualified static member variable
In this sample code, there is two sentences showing the same static variable. The first one gives no ambiguity, but the second one does, why?
#include
using namespace std;
struct A { static const char a = 'a'; };
struct B : public A {…

ABu
- 10,423
- 6
- 52
- 103
11
votes
2 answers
Why do fully qualified assembly names sometimes require spaces?
Just stumbled over this one today and I can't find any information about it. So that's why I ask here. Perhaps someone knows why.
I added a custom WCF behavior extension to my web.config. It looks like this:

CrazyChief
- 197
- 8
10
votes
3 answers
What's the meaning of "apostrophe + number" in the object type of properties with generics (eg. "Collection`1")?
I have an object (MyObject) with a property (MyProperty). I want to get it's type name (i.e. String or MyClass etc.). I use:
PropertyInfo propInfo =…

bluish
- 26,356
- 27
- 122
- 180
10
votes
7 answers
Should I use (otherwise optimal) class names that conflict with the .NET BCL's names?
This situation probably is not entirely uncommon to some of you: you have some functionality to put in a class but the perfect name (*) for that class is taken by one of the classes in the System namespace or other namespace/class that's not yours…

Camilo Martin
- 37,236
- 20
- 111
- 154
9
votes
4 answers
namespaces, classes and free functions - when do you need fully qualified names
In my example below, why do I have to fully qualify the name of the free function in the cpp to avoid linker errors and why does it work for the class function without? Can you explain the difference?
ctest.h:
namespace Test
{
int…

nabulke
- 11,025
- 13
- 65
- 114
9
votes
6 answers
How to read the fully qualified name of a .class file
Hey, I think the title sums it, but still.
I need to extract the fully qualified name of an object from its compiled .class file, could anyone point me in the right direction?
Thanks,
Adam.

TacB0sS
- 10,106
- 12
- 75
- 118
9
votes
4 answers
Get use statement from class
Not quite sure of the best title but I will explain what I am asking as best I can. Assume I have the following file:
MyCustomClass.php

Ozzy
- 10,285
- 26
- 94
- 138
8
votes
3 answers
Get name of generic class without tilde
I am trying to get the type name of T using this:
typeof(T).Name
The name of the class is ConfigSettings
Instead of returning ConfigSettings it is returning ConfigSettings`1.
Is there any specific reason why? How can I return the actual name…

user2483744
- 283
- 1
- 5
- 11
7
votes
1 answer
Executing Powershell on remove server fails when path to script is fully qualified
I have two servers running Windows Server 2012 R2 on the same domain, \tt-sql.perf.corp and \tt-file.perf.corp. There's a Powershell script in a shared folder on the file server, \tt-file.perf.corp\fileshare\helloworld.ps1. I have an application on…

themilkyninja
- 886
- 2
- 9
- 15
7
votes
1 answer
What is a qualified/unqualified name in Python?
In Python: what is a "qualified name" or "unqualified name"?
I've seen it mentioned a couple of times, but no explanation as to what it is.

Niels Bom
- 8,728
- 11
- 46
- 62
6
votes
2 answers
Fully qualified machine name Java with /etc/hosts
I am trying get the fully qualified name of my machine (Windows 7 x64) in Java. On my machine, I've updated the c:\Windows\system32\drivers\etc\hosts file such that it has an entry like this:
10.44.2.167 myserver myserver.domain.com
All our systems…

Shreyas Shinde
- 61
- 1
- 1
- 3