If I import the namespace as follows:
using System;
Why can't I access the IO submenu as follows:
IO.FileInfo fi;
Introduced I have to write either the whole path:
System.IO.FileInfo fi;
Or import the full I / O namespace and use a class without a namespace
using System.IO; FileInfo fi;
Did I miss something?
Although it is often convenient to think in terms of namespaces and subspaces, in reality only type names exist.
In this case, there is one type: System.IO.FileInfo
System.IO.FileInfo
using System. , , . IO.FileInfo, IO, FileInfo .
System.
IO.FileInfo
IO
FileInfo
, , , . .
# . .
System System.IO - , #.
System
System.IO
FileInfo, :
using FileInfo = System.IO.FileInfo;
, , , , :
namespace System { class MyClass { IO.FileInfo fi; } }
, :
namespace System { using IO; }
Source: https://habr.com/ru/post/1793671/More articles:Unique key with multiple MySQL columns - mysqlgetting an undeclared prefix when dynamically creating an xaml object - c #How to force antlr3 to parse "forward"? - javaThreadsafe Bidirectional Association in Java - javaNSSM - Unauthorized Service Manager and Marina - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1793672/steps-to-take-when-deploying-a-windows-forms-application&usg=ALkJrhjtsldJl7v8sPjZoqvtd9YvEbWujwCan MySQL calculate totals from multi-level parent-child relationships? - phpAndroid-эмулятор не подключается к localhost Apache - androidZend Framework Bootstrap Features Where You Can Get It - zend-frameworkBasic / home gem catalog - ruby | fooobar.comAll Articles