5 instantiations of RangeAttribute
Microsoft.ML.Core.Tests (5)
UnitTests\TestEntryPoints.cs (5)
389
range = new TlcModule.
RangeAttribute
() { Min = 5.0 };
394
range = new TlcModule.
RangeAttribute
() { Inf = 5.0 };
399
range = new TlcModule.
RangeAttribute
() { Max = 5.0 };
404
range = new TlcModule.
RangeAttribute
() { Sup = 5.0 };
409
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)
387
TlcModule.
RangeAttribute
range = null;