Show / Hide Table of Contents

Class CSIdentifiers

Identifier validation in a context of C# grammar

Inheritance
System.Object
CSIdentifiers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.CodeAnalysis.CSharp
Assembly: NFX.dll
Syntax
public static class CSIdentifiers

Methods

Validate(String)

Checks whether supplied string is a valid C# ident

Declaration
public static bool Validate(string id)
Parameters
Type Name Description
System.String id
Returns
Type Description
System.Boolean

ValidateChar(Char)

Checks whether supplied char is suitable for a part of C# id

Declaration
public static bool ValidateChar(char c)
Parameters
Type Name Description
System.Char c
Returns
Type Description
System.Boolean

ValidateDigit(Char)

Checks to see whether supplied char is a digit

Declaration
public static bool ValidateDigit(char c)
Parameters
Type Name Description
System.Char c
Returns
Type Description
System.Boolean
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX