我有一个 .Net Core 2.0 Web 应用程序,我希望在任务管理器中显示该名称。目前显示的是.NET Core Host:
我发现了这个问题,但不幸的是,无法更改程序集信息,因为该窗口甚至没有显示(我认为这是因为它是 .NET Core 2.0 应用程序而不是 .NET Framework 4.x 应用程序)。
还有其他方法可以在任务管理器中显示应用程序的标题吗?
我正在使用 NaCL 库,我喜欢它,但我想知道如果需要更强的加密,需要什么才能用不同的、更强的曲线替换 Curve25519。
我确实知道新库与 NaCL 不兼容。
我目前有这样的事情:
public class Person
{
public string Firstname { get; set; }
public string Lastname { get; set; }
}
public List<Person> CreatePersons(int numberOfPersons)
{
var persons = new List<Person>();
for (int i = 0; i < numberOfPersons; i++)
{
persons.Add(new Person())
}
return persons;
}
Run Code Online (Sandbox Code Playgroud)
我知道,如果我要使用,array那么我可以这样做:
var persons = new Person[numberOfPersons];
Run Code Online (Sandbox Code Playgroud)
我的问题是:
我猜一个数组可能在内部完全相同,使用一个循环来创建这个数组,但使用不同的表示法.但现在这不是一个问题,对于这个问题,我只是对一个更简单的符号感兴趣.
I want to check if a type is nullable or not, and if it has a conditional type on the value.
I tried implementing
type IsNullable<T> = T extends null ? true : false;
Run Code Online (Sandbox Code Playgroud)
However, it does not seem to work
type test = IsNullable<number> // Returns false as it should
type test = IsNullable<number | null> // Returns false when it should be true
Run Code Online (Sandbox Code Playgroud)
What's the proper way of checking if a type is nullable? I tried with T …
c# ×2
c ×1
cryptography ×1
encryption ×1
libsodium ×1
loops ×1
nullable ×1
types ×1
typescript ×1
windows ×1