Questions tagged as 'namespace'

1
answer

Namespace error when I create "Resource Dictionary ..." inside a folder

In an empty project (test - WPF Application) I test two scenarios. Scenario 1 Right click on the project Add Resource Dictionary ... I get the following: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/...
asked by 16.05.2016 / 16:32
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
0
answers

Validate namespace definition

PHP variables, if necessary, can be validated with the following Regular Expression: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* But what about namespaces ? I have a certain string, coming from a form, which will serve as the name of a dir...
asked by 04.12.2014 / 14:20
2
answers

Why calling a method is not compiling?

using System; using System.IO; namespace testando { public class pessoa { public void Falar(){ Console.WriteLine("Ola meu nome é ninguem"); } } class Program { public static void Main(strin...
asked by 02.09.2018 / 15:34
2
answers

I can not get a variable from another namespace

One project is WebApplication and the other is a Console : "Test Project" SolutionName Structure below: Business (Folder) BusinessDAL (project) DLL.cs file Console (project) Business.cs // BusinessDAL Project...
asked by 04.08.2017 / 15:50
1
answer

Autoload of controllers using namespace

I'm trying to give a restructured in a personal microframework, before I did not use much pattern in the design structure, now I've thrown my whole backend in the source folder, and I'm using namespaces to separate the code. I'm having t...
asked by 17.09.2016 / 20:41
1
answer

Can I inherit namespaces?

I'm using composer with autoload in the class namespaces, assuming I have the parent Model : Model.php <?php namespace App\Model; use App\Utils; use \PDO; class Model {} And the child class Item : Item.php <?php na...
asked by 08.09.2018 / 02:32
1
answer

Namespace does not work in php 5.5

I'm doing a simple system using php with mvc structure and I want to use the namespace, however, of the error stating that it does not find the Data class. Error: Fatal error: Class 'Config \ Database \ Data' not found in /home/andre/www/mvc-...
asked by 16.12.2017 / 20:14
1
answer

VB.NET, Visual Studio, and Namespaces

How to make Visual Studio 2017 + VB.NET create new classes already with the namespace, as it does in C #? I've tried creating and editing item templates using the $itemfolder$ parameter, but it does not seem to work: Template...
asked by 11.07.2017 / 03:44
1
answer

Problem with namespace and include

Good morning. I have a webservice made in slimPHP. I have a class that is called control , and it belongs to the controllers namespace, it works normally without problems, but the need arose to import a class for PDF manipulation, s...
asked by 06.06.2017 / 15:15