-
**Version Used**:
VS 16.3.0 Preview 2.0
**Steps to Reproduce**:
```cs
static void M1(string? s)
{
Debug.Assert(s != null);
Console.WriteLine(s.Length); // no warning
}
static…
ufcpp updated
5 years ago
-
This would be very useful for Unit Test frameworks, as methods such as Assert.NotNull would have no way of telling the compiler that the passed object will not be null if the method terminates properl…
-
See screenshot here:
Iv enabled NRT im on .net core 3.0 release and latest visual studio.
![image](https://user-images.githubusercontent.com/4672627/65468457-0bedc480-de5c-11e9-87a1-f8f87cd40cbb.p…
-
**Version Used**: vs 16.3 preview 1.0
**Steps to Reproduce**:
```csharp
using System;
using System.Diagnostics.CodeAnalysis;
public class C {
int? a = null;
public int M() {
…
-
2019/8/18 残りタスク:
- [x] ジェネリクスのページの方でも notnull 制約書く
- [x] 属性の利用例、半分くらいまだ (TryParse とか)
- [x] 特殊扱いされるメソッド(ReferenceEquals とか) の話
- [ ] event の話(`+=` とフィールド参照別扱い・特殊対応はしない)も書く?
初期 preview の頃に書いたブ…
ufcpp updated
4 years ago
-
**Version Used**: 3.3.0-beta1-19327-04
**Steps to Reproduce**:
```c#
bool _initialised;
void M()
{
_initialised = true;
object? service = GetService();
EnsuresNotNull(ser…
-
Reacting to the [C# LDM](https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-05-15.md) changes to nullable reference types
- 6/10
- [x] Support for `notnull` constraint @Al…
-
I generally use ReSharper's Null checking at the highest level. This lets me avoid any NREs. However, it requires that all instances of an object reference (param, field, return value) indicate nullne…