我使用的是Visual Studio 2012 Ultimate版本11.0.51106.01 Update 1.我将黑色配置为背景颜色,将白色配置为前景色,但C#折叠区域显示为黑色前景,使其不可见.我怎么能纠正这个?
具有正确颜色的扩展区域:

折叠时,该区域变为不可见(黑色前景和黑色背景):

我正在尝试创建一个打印消息然后创建表的 PL/SQL 脚本。
如果我在 SqlPlus 中运行脚本,则会打印消息,创建表,但我收到一条错误消息,指出该表正在使用中。似乎“创建表”正在运行两次。在 SQLDeveloper 中,我没有错误。
这是我的脚本:
set serveroutput on
begin
dbms_output.Put_line('running test.sql');
end;
/
create table my_table
(
name varchar2(100) not null
);
/
Run Code Online (Sandbox Code Playgroud)
这是输出:
SQL> @test.sql
running test.sql
PL/SQL procedure successfully completed.
Table created.
create table my_table
*
ERROR at line 1:
ORA-00955: name is already used by an existing object
SQL>
Run Code Online (Sandbox Code Playgroud)
我做错了什么?
提前致谢。
在示例中,我期望获得第三个输出,因为第三类与Print调用具有精确的签名匹配,但输出为Second.为什么会这样?
class First
{
public virtual void Print(string x)
{
Console.WriteLine("First");
}
}
class Second : First
{
public void Print(object x)
{
Console.WriteLine("Second");
}
}
class Third : Second
{
public override void Print(string x)
{
Console.WriteLine("Third");
}
}
class Program
{
static void Main(string[] args)
{
string sss = "lalala";
Third t = new Third();
t.Print(sss);
Console.ReadLine();
}
}
Run Code Online (Sandbox Code Playgroud)