Annotations for cases the analyzer can't figure out. #126
Open
Description
public interface IWithAnnotations
{
[return: MustDispose]
IDisposable Create();
bool TryCreate([MustDispose]out IDisposable disposable);
[return: DoNotDispose]
IDisposable GetOrCreate();
bool TryGet([DoNotDispose]out IDisposable disposable);
void Add([TransferOwnership] IDisposable disposable);
}
Not sure what attributes are needed and how we should word things. Also should probably not require a dependency on a nuget with attributes. Does JetBrains.Annotations have something for this?
Metadata
Assignees
Labels
No labels