KnowledgeBase.Item property
Gets an object of the Fact class has a specified name.
Namespace : ielib
Assembly : ielib.dll
public Fact Item[string aFactName] { get; }ParametersType: System.String.
aFactName: The name of a specified fact.
Property valueType : ielib.Fact
Represents a Fact class object, if the object does not exist, null will be returned.
Example :
KnowledgeBase kb = new KnowledgeBase();
kb.LoadFrom("kbase.xml");
Fact f = kb["many museums"];
If (f == null)
MessageBox.Show("A fact [many museums] is not found");