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)
255_ectx.Check(parent != null); 256_ectx.Check(parent.StartsWith(root)); 259_ectx.Check(entityPath.Length > ichSplit && entityPath[ichSplit] == Path.DirectorySeparatorChar); 266_ectx.Check(Utils.Size(pathEnt) > 0); 267_ectx.Check(entityPath == Path.Combine(root, pathEnt)); 321ExceptionContext.Check(!Disposed); 418ExceptionContext.Check(!Disposed); 505ExceptionContext.Check(!Disposed);