/// <inheritdoc cref="MorphologyProvider.FindWord"/> public override MorphologyEntry[] FindWord ( string word ) { ManagedClient64 client = Client.ThrowIfNull("Client"); string database = Database.ThrowIfNull("Database"); client.PushDatabase(database); try { IrbisRecord[] records = client.SearchRead ( "\"K={0}\"", word ); MorphologyEntry[] result = records .Select(r => MorphologyEntry.Parse(r)) .ToArray(); return(result); } finally { client.PopDatabase(); } }
public IrbisRecord[] SearchRead ( [NotNull] string format, params object[] args ) { if (string.IsNullOrEmpty(format)) { throw new ArgumentNullException("format"); } string original = string.Format(format, args); string rewritten = RewriteQuery(original); ManagedClient64 client = Client.ThrowIfNull("Client"); return(client.SearchRead(rewritten)); }