17 references to Check
Microsoft.ML.Core (17)
CommandLine\CmdParser.cs (1)
241env.Check(destinationType.IsInstanceOfType(destination));
ComponentModel\ComponentCatalog.cs (3)
268env.Check((ArgType != null) == (args != null)); 269env.Check(Utils.Size(extra) == ExtraArgCount); 1001env.Check(signatureType.BaseType == typeof(MulticastDelegate));
Data\LinkedRowRootCursorBase.cs (2)
27Ch.Check(active == null || active.Length == schema.Count); 37Ch.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)); 317ExceptionContext.Check(!Disposed); 414ExceptionContext.Check(!Disposed); 501ExceptionContext.Check(!Disposed);