17 references to Check
Microsoft.ML.Core (17)
CommandLine\CmdParser.cs (1)
240
env.
Check
(destinationType.IsInstanceOfType(destination));
ComponentModel\ComponentCatalog.cs (3)
268
env.
Check
((ArgType != null) == (args != null));
269
env.
Check
(Utils.Size(extra) == ExtraArgCount);
1001
env.
Check
(signatureType.BaseType == typeof(MulticastDelegate));
Data\LinkedRowRootCursorBase.cs (2)
27
Ch.
Check
(active == null || active.Length == schema.Count);
37
Ch.
Check
(column.Index < Schema.Count);
Data\ModelLoadContext.cs (2)
116
_ectx.
Check
(Reader.BaseStream.Position == FpMin + Header.FpModel);
121
_ectx.
Check
(Reader.BaseStream.Position == FpMin + Header.FpModel);
Data\ModelSaveContext.cs (1)
139
_ectx.
Check
(Writer.BaseStream.Position == FpMin + Header.FpModel);
Data\Repository.cs (8)
251
_ectx.
Check
(parent != null);
252
_ectx.
Check
(parent.StartsWith(root));
255
_ectx.
Check
(entityPath.Length > ichSplit && entityPath[ichSplit] == Path.DirectorySeparatorChar);
262
_ectx.
Check
(Utils.Size(pathEnt) > 0);
263
_ectx.
Check
(entityPath == Path.Combine(root, pathEnt));
317
ExceptionContext.
Check
(!Disposed);
414
ExceptionContext.
Check
(!Disposed);
501
ExceptionContext.
Check
(!Disposed);