Tests an String to see if it falls within this INamespace.
![](../icons/collapse_all.gif)
![](../icons/collapse_all.gif)
- subject (String)
- The string to be tested for matching
![](../icons/collapse_all.gif)
True if subject falls within this INamespace, false otherwise
![](../icons/collapse_all.gif)
![](../icons/collapse_all.gif)
An example of a simple prefix based INamespace implementation is below. Note the ToString() method is used to to obtain the full string-version of the string.
![](../icons/CopyCode.gif)
using Caplin.DataSource; using Caplin.DataSource.Namespace; namespace DataSourceExamples.Namespace { class PrefixNamespaceExample : INamespace { string prefix; public PrefixNamespaceExample(string prefix) { this.prefix = prefix; } #region INamespace Members public bool Match(string subject) { return subject.ToString().StartsWith(prefix); } #endregion } }