Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khellang/jetbrains.annotations.dnx


https://github.com/khellang/jetbrains.annotations.dnx

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# JetBrains.Annotations.Dnx

Given the following class:

```csharp
namespace JetBrains.Annotations.Dnx
{
[PublicAPI]
[BaseTypeRequired(typeof(string))]
public class TestClass : Attribute
{
[NotNull]
private readonly string _readOnlyField, _otherField;

public TestClass([NotNull] string value)
{
}

[CanBeNull]
public string Value { get; [NotNull] set; }

[StringFormatMethod("format")]
[ContractAnnotation("values:null => halt")]
public void SomeMethod([NotNull, ItemNotNull, NoEnumeration] IEnumerable values, [CanBeNull] string format)
{
}

public void GenericMethod([NotNull] [NoEnumeration] IEnumerable values)
{

}
}
}
```

The following is produced in `./bin/{configuration}` at build-time:

```xml




typeof(string)





















format


values:null => halt















```

It's not 100% yet, but it's getting there :grin: