5 instantiations of RangeAttribute
Microsoft.ML.Core.Tests (5)
UnitTests\TestEntryPoints.cs (5)
388
range = new TlcModule.
RangeAttribute
() { Min = 5.0 };
393
range = new TlcModule.
RangeAttribute
() { Inf = 5.0 };
398
range = new TlcModule.
RangeAttribute
() { Max = 5.0 };
403
range = new TlcModule.
RangeAttribute
() { Sup = 5.0 };
408
range = new TlcModule.
RangeAttribute
() { Max = 1.0, Min = -1.0 };
8 references to RangeAttribute
Microsoft.ML.Core (7)
EntryPoints\EntryPointUtils.cs (7)
17
private static readonly FuncStaticMethodInfo1<TlcModule.
RangeAttribute
, object, bool> _isValueWithinRangeMethodInfo
18
= new FuncStaticMethodInfo1<TlcModule.
RangeAttribute
, object, bool>(IsValueWithinRange<int>);
20
private static bool IsValueWithinRange<T>(TlcModule.
RangeAttribute
range, object obj)
35
public static bool IsValueWithinRange(this TlcModule.
RangeAttribute
range, object val)
84
var
rangeAttr = fieldInfo.GetCustomAttributes(typeof(TlcModule.
RangeAttribute
), false).FirstOrDefault()
85
as TlcModule.
RangeAttribute
;
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
386
TlcModule.
RangeAttribute
range = null;