Questions tagged [fully-qualified-naming]

75 questions
0
votes
0 answers

How to declare a fully qualified path to instanciate an object?

I have been messing around with windows forms and I'm pretty new to C#. So you normally declare an instance like the following:Button example = new Button(); however, if the class Button is inside a namespace you must declare the fully qualified…
user12860256
0
votes
3 answers

Column name in SQL Server fully qualified name

I read in SQL Server documentation that I can specify column names in FROM clause of a simple SELECT query. But when I try to run this query: select * from my_db.dbo.test_table.test; I get the following error: Msg 7202, Level 11, State 2, Line 1…
Lotusmeristem
  • 53
  • 3
  • 13
0
votes
0 answers

Fully qualified names failing to be recognised correctly with valid grammar

I've got a basic ANTLR-4 grammar at the moment in my Eclipse IDE for Java, and have the following: // Parser importDeclaration: 'use' name=FQN ';' ; // Lexer and terminals fragment LETTER: [a-zA-Z_]; fragment LETTER_OR_DIGIT:…
user5549921
0
votes
4 answers

Select from multiple tables with same condition, avoid ambiguity error

How can I do something like this but avoid the error column common_reference is ambiguous? I know it's ambiguous, I want to select from table_one all the results for common_reference there, and table_two the same. SELECT * FROM table_one, table_two…
bcmcfc
  • 25,966
  • 29
  • 109
  • 181
0
votes
1 answer

C# Fully qualified namespaces vs small namespaces

I have read all those questions on why you should use 'using's inside/outside namespaces and also why you should use or not 'var'. And I am not looking to have an answer on those here. What I want to know (or confirm) is: Is there a difference…
Sebastien
  • 1,308
  • 2
  • 15
  • 39
0
votes
1 answer

How to avoid polluting the current scope (with `library(...)`)

As a matter of long-standing policy, I avoid importing names into (aka "polluting") the current scope, and instead I use fully-qualified names when referring to items defined in a different package. The script below shows that, in R, using qualified…
kjo
  • 33,683
  • 52
  • 148
  • 265
0
votes
1 answer

Fully qualified name should we use ::class

With Symfony I'm taking the habit of using the class name resolver ::class (since php5.5): use AppBundle\Entity\Product; // ... $resolver->setDefaults(array( 'data_class' => Product::class )); instead of the FQN…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
0
votes
1 answer

GetType from fully qualified type name not working

Public Sub New(ByVal oldC As Control) Dim FQTN As String = oldC.GetType.FullName Dim t As Type = Type.GetType(FQTN) Dim newC As Object = Activator.CreateInstance(t) End Sub FQTN is returning the correct Type name, but t is Nothing. For…
Tyler Montney
  • 1,402
  • 1
  • 17
  • 25
0
votes
1 answer

Implementing cached qualified names in ECore

I have to classes, Container and Containable, and I'd like to implement qualified names ( root/containerA/containerB/containableXYZ ) So, Container derives from Containable and Containable has a fullName Property which I set as derived, transient &…
Jack Shade
  • 491
  • 5
  • 13
0
votes
1 answer

GetFullUrl doesn't return the complete url - sitecore

I am trying to get a fully qualified url, here is the code string path = string.Format("/sitecore/shell/Applications/Content%20Manager/default.aspx?id={0}&la={1}&fo={0}", contentItem.ID, contentItem.Language); string fullPath =…
Newbie
  • 361
  • 2
  • 15
  • 33
0
votes
2 answers

template specialization/initializations and namespaces?

What are C++'s rules regarding template specialization and namespace qualification? I had some code that boiled down to the equivalent of the following, and it made me realize that I don't understand C++'s rules regarding template specialization…
0
votes
2 answers

Get Assembly qualified name of enum member

I have enum namespace ConsoleTestApplication { public enum Cars { Audi, BMW, Ford } } now I want to get fully qualified name of enum member so the result will be…
inside
  • 3,047
  • 10
  • 49
  • 75
-1
votes
2 answers

Getting qualified method name by the line number

This question is Java and Maven specific. Please note the additional constraints below as they are different from other questions. I have several Maven (Java) projects to analyze. What I have is: the source code maven-compiled Jave code with…
-1
votes
1 answer

Can MySQL database name be numeric?

MySQL wont let me create a database name that only has numbers. It only works when I add letters. How do I create a database name in MySQL that only uses numbers? CREATE DATABASE 2752054;
-1
votes
1 answer

Explicit method naming or generic method name with call purpose parameter

I sometimes stumble upon a decision for method naming on public API methods. Variant A: public void play(); public void stop(); public void pause(); Variant B: public enum CallType { PLAY, STOP, PAUSE …
Juergen
  • 3,489
  • 6
  • 35
  • 59
1 2 3 4
5