CodeReference.IsValid Method
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
Definition
Determines whether the specified code reference string is valid.
public static bool IsValid(string cref)Parameters
crefstring- The code reference string to validate.
Returns
Remarks
A valid code reference string must:
- Be at least 3 characters long.
- Start with a valid code reference type character ('T', 'F', 'P', 'M', 'E', or 'N').
- Contain a colon (':') at index 1.
