Questions tagged as 'namespace'

5
answers

Using unused affect performance?

While developing, I saw that in most of my classes contained a certain amount of using that were not being used and I came to doubt the title. Using unused affects the performance of the application in any way? Do you always need to re...
asked by 21.05.2014 / 16:53
5
answers

How do namespaces work in C #?

I'm studying C # and I came across namespaces . How does it work and when is it applied? If possible, some basic example.     
asked by 01.04.2014 / 01:17
3
answers

Why is not it a good practice to use namespace "std" in C ++?

I was using using namespace (nomeDaBiblioteca); in my code and I ended up having some conflicts with another library. Why do these conflicts happen and what is the best solution?     
asked by 28.10.2014 / 19:02
1
answer

How to unify redundant namespaces of an XML?

I have the following XML: <?xml version="1.0" encoding="UTF-8"?> <DataTable> <Columns> <DataColumn xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ColumnName>NomeColuna1</ColumnName>...
asked by 14.01.2014 / 14:50
2
answers

How namespace works in ASP.NET

I do not know ASP.NET, but I had to support a very disorganized third party code by the way. I have a xxxx.aspx file that is in the /cp folder and has these calls: <%@ Page Language="VB" Debug="true" %> <%@ Import Namespace...
asked by 13.05.2014 / 16:09
2
answers

Is "slash" required at the beginning of native functions when using namespace?

I noticed that some libraries often use native PHP functions as \ , for example: echo \str_replace('foo', 'test', $string); I've been testing inside a class with just this namespace: public function foo($string) { echo \str_re...
asked by 03.08.2015 / 23:13
1
answer

What is the "global ::" in C #?

I've been editing a source code for an application I'm writing in C #, which uses GTK +. I have some knowledge of C #, but I did not understand why some variables were written when I mounted the UI in the "drag and drop" with global::...
asked by 15.03.2017 / 18:50
3
answers

Use of using versus full name

I've been following many open source projects and noticed that there is a fairly large switch between using using ( Imports in VB.NET) and using direct reference to namespace . Example: void Main() { System.Int32 i...
asked by 17.07.2015 / 19:04
2
answers

Collision of names between class and namespace

Is it wrong, bad practice or can I have problems with class equal to namespace ? Example: namespace Cielo { public class Cielo { } } It has worked, in some places it gets a bit strange to call Cielo.Cielo.etc . Should...
asked by 29.04.2016 / 20:08
1
answer

Reserved word include or "use" in PHP?

I saw somewhere that the reserved word include in PHP should be used only in procedural programming, and that in object-oriented programming you should opt for the reserved word use . I did not find anything that would lead me to...
asked by 23.09.2017 / 17:34