Microsoft.Extensions.Primitives
11 wrapped types. Load them with using { "Microsoft.Extensions.Primitives" }. Click a class to open it.
AspExtensions class static
Microsoft.Extensions.Primitives.Extensions · assembly Microsoft.Extensions.Primitives
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Append | Append(p1,p2) | static StringBuilder Append(StringBuilder builder, StringSegment segment) |
CancellationChangeToken class
Microsoft.Extensions.Primitives.CancellationChangeToken · assembly Microsoft.Extensions.Primitives
Constructors
new CancellationChangeToken(CancellationToken cancellationToken) |
Ring: new CancellationChangeToken(args) uses one constructor; the others are chosen by the parameter names: new CancellationChangeToken().@New([ :param = value ]) or dnNew("CancellationChangeToken",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ActiveChangeCallbacks | bool | read | o.ActiveChangeCallbacks |
HasChanged | bool | read | o.HasChanged |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
RegisterChangeCallback | callMethod("RegisterChangeCallback",[p1,p2]) | IDisposable RegisterChangeCallback(Action<object> callback, object state) |
ChangeToken class static
Microsoft.Extensions.Primitives.ChangeToken · assembly Microsoft.Extensions.Primitives
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
OnChange | OnChange([ :changeTokenProducer = …, :changeTokenConsumer = … ])OnChange([ :changeTokenProducer = …, :changeTokenConsumer = …, :state = … ]) | static IDisposable OnChange(Func<IChangeToken> changeTokenProducer, Action changeTokenConsumer)static IDisposable OnChange<TState>(Func<IChangeToken> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) |
CompositeChangeToken class
Microsoft.Extensions.Primitives.CompositeChangeToken · assembly Microsoft.Extensions.Primitives
Constructors
new CompositeChangeToken(IReadOnlyList<IChangeToken> changeTokens) |
Ring: new CompositeChangeToken(args) uses one constructor; the others are chosen by the parameter names: new CompositeChangeToken().@New([ :param = value ]) or dnNew("CompositeChangeToken",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ChangeTokens | IReadOnlyList<IChangeToken> | read | o.ChangeTokens |
HasChanged | bool | read | o.HasChanged |
ActiveChangeCallbacks | bool | read | o.ActiveChangeCallbacks |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
RegisterChangeCallback | callMethod("RegisterChangeCallback",[p1,p2]) | IDisposable RegisterChangeCallback(Action<object> callback, object state) |
IChangeToken interface
Microsoft.Extensions.Primitives.IChangeToken · assembly Microsoft.Extensions.Primitives
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
HasChanged | bool | read | o.HasChanged |
ActiveChangeCallbacks | bool | read | o.ActiveChangeCallbacks |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
RegisterChangeCallback | callMethod("RegisterChangeCallback",[p1,p2]) | IDisposable RegisterChangeCallback(Action<object> callback, object state) |
StringSegment struct
Microsoft.Extensions.Primitives.StringSegment · assembly Microsoft.Extensions.Primitives
Constructors
new StringSegment(string buffer) |
new StringSegment(string buffer, int offset, int length) |
Ring: new StringSegment(args) uses one constructor; the others are chosen by the parameter names: new StringSegment().@New([ :param = value ]) or dnNew("StringSegment",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Buffer | string | read | o.Buffer |
Offset | int | read | o.Offset |
Length | int | read | o.Length |
Value | string | read | o.Value |
HasValue | bool | read | o.HasValue |
Empty | StringSegment | read · static | o.Empty |
Indexer
o.Item(int index) → char
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AsMemory | callMethod("AsMemory",[]) | ReadOnlyMemory<char> AsMemory() |
AsSpan | AsSpan(NULL)AsSpan(value)AsSpan([ :start = … ])AsSpan([ :start = …, :length = … ]) | ReadOnlySpan<char> AsSpan()ReadOnlySpan<char> AsSpan(int start)ReadOnlySpan<char> AsSpan(int start, int length) |
Compare | Compare(p1,p2,p3) | static int Compare(StringSegment a, StringSegment b, StringComparison comparisonType) |
EndsWith | EndsWith(p1,p2) | bool EndsWith(string text, StringComparison comparisonType) |
Equals | Equals(value)Equals([ :obj = … ])Equals([ :other = … ])Equals([ :text = … ])Equals([ :other = …, :comparisonType = … ]) | bool Equals(object obj)bool Equals(StringSegment other)bool Equals(StringSegment other, StringComparison comparisonType)bool Equals(string text)bool Equals(string text, StringComparison comparisonType)static bool Equals(StringSegment a, StringSegment b, StringComparison comparisonType) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
IndexOf | callMethod("IndexOf",[p1])callMethod("IndexOf",[p1,p2])callMethod("IndexOf",[p1,p2,p3]) | int IndexOf(char c, int start, int count)int IndexOf(char c, int start)int IndexOf(char c) |
IndexOfAny | callMethod("IndexOfAny",[p1])callMethod("IndexOfAny",[p1,p2])callMethod("IndexOfAny",[p1,p2,p3]) | int IndexOfAny(char[] anyOf, int startIndex, int count)int IndexOfAny(char[] anyOf, int startIndex)int IndexOfAny(char[] anyOf) |
IsNullOrEmpty | IsNullOrEmpty(p1) | static bool IsNullOrEmpty(StringSegment value) |
LastIndexOf | LastIndexOf(p1) | int LastIndexOf(char value) |
Split | callMethod("Split",[p1]) | StringTokenizer Split(char[] chars) |
StartsWith | StartsWith(p1,p2) | bool StartsWith(string text, StringComparison comparisonType) |
Subsegment | Subsegment(value)Subsegment([ :offset = … ])Subsegment([ :offset = …, :length = … ]) | StringSegment Subsegment(int offset)StringSegment Subsegment(int offset, int length) |
Substring | callMethod("Substring",[p1])callMethod("Substring",[p1,p2]) | string Substring(int offset)string Substring(int offset, int length) |
ToString | callMethod("ToString",[]) | string ToString() |
Trim | callMethod("Trim",[]) | StringSegment Trim() |
TrimEnd | callMethod("TrimEnd",[]) | StringSegment TrimEnd() |
TrimStart | callMethod("TrimStart",[]) | StringSegment TrimStart() |
StringSegmentComparer class
Microsoft.Extensions.Primitives.StringSegmentComparer · assembly Microsoft.Extensions.Primitives
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Ordinal | StringSegmentComparer | read · static | o.Ordinal |
OrdinalIgnoreCase | StringSegmentComparer | read · static | o.OrdinalIgnoreCase |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Compare | Compare(p1,p2) | int Compare(StringSegment x, StringSegment y) |
Equals | Equals([ :x = …, :y = … ]) | bool Equals(StringSegment x, StringSegment y) |
GetHashCode | callMethod("GetHashCode",[p1]) | int GetHashCode(StringSegment obj) |
StringTokenizer struct
Microsoft.Extensions.Primitives.StringTokenizer · assembly Microsoft.Extensions.Primitives
Implements: IEnumerable
Constructors
new StringTokenizer(string value, char[] separators) |
new StringTokenizer(StringSegment value, char[] separators) |
Ring: new StringTokenizer(args) uses one constructor; the others are chosen by the parameter names: new StringTokenizer().@New([ :param = value ]) or dnNew("StringTokenizer",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetEnumerator | callMethod("GetEnumerator",[]) | StringTokenizer.Enumerator GetEnumerator() |
StringTokenizerEnumerator struct
Microsoft.Extensions.Primitives.StringTokenizer+Enumerator · assembly Microsoft.Extensions.Primitives
Implements: IDisposable, IEnumerator
Constructors
new StringTokenizerEnumerator(ref StringTokenizer tokenizer) |
Ring: new StringTokenizerEnumerator(args) uses one constructor; the others are chosen by the parameter names: new StringTokenizerEnumerator().@New([ :param = value ]) or dnNew("StringTokenizerEnumerator",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Current | StringSegment | read | o.Current |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
MoveNext | callMethod("MoveNext",[]) | bool MoveNext() |
Reset | callMethod("Reset",[]) | void Reset() |
StringValues struct
Microsoft.Extensions.Primitives.StringValues · assembly Microsoft.Extensions.Primitives
Implements: IEnumerable
Constructors
new StringValues(string value) |
new StringValues(string[] values) |
Ring: new StringValues(args) uses one constructor; the others are chosen by the parameter names: new StringValues().@New([ :param = value ]) or dnNew("StringValues",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
Empty | StringValues | read · static | o.Empty |
Indexer
o.Item(int index) → string
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Concat | Concat(p1,p2) | static StringValues Concat(StringValues values1, StringValues values2)static StringValues Concat(ref StringValues values, string value)static StringValues Concat(string value, ref StringValues values) |
Equals | Equals(value)Equals([ :other = … ])Equals([ :obj = … ])Equals([ :left = …, :right = … ]) | bool Equals(StringValues other)bool Equals(string other)bool Equals(string[] other)bool Equals(object obj)static bool Equals(StringValues left, StringValues right)static bool Equals(string left, StringValues right)static bool Equals(StringValues left, string right)static bool Equals(string[] left, StringValues right)static bool Equals(StringValues left, string[] right) |
GetEnumerator | callMethod("GetEnumerator",[]) | StringValues.Enumerator GetEnumerator() |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
IsNullOrEmpty | IsNullOrEmpty(p1) | static bool IsNullOrEmpty(StringValues value) |
ToArray | callMethod("ToArray",[]) | string[] ToArray() |
ToString | callMethod("ToString",[]) | string ToString() |
StringValuesEnumerator struct
Microsoft.Extensions.Primitives.StringValues+Enumerator · assembly Microsoft.Extensions.Primitives
Implements: IDisposable, IEnumerator
Constructors
new StringValuesEnumerator(ref StringValues values) |
Ring: new StringValuesEnumerator(args) uses one constructor; the others are chosen by the parameter names: new StringValuesEnumerator().@New([ :param = value ]) or dnNew("StringValuesEnumerator",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Current | string | read | o.Current |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
MoveNext | callMethod("MoveNext",[]) | bool MoveNext() |