Esempio n. 1
0
 public virtual TResult Visit(MemberType symbol)
 {
     if (symbol == null)
     {
         return(default(TResult));
     }
     else
     {
         return(symbol.Accept <TResult>(this));
     }
 }
Esempio n. 2
0
 public override string DefaultVisit(MemberType type)
 {
     // If a type contains a precision value (e.g., datetime2(0)), the brackets must only be around the name part
     return(Regex.Replace(type.Accept(_typeNameVistor), "^[A-Za-z0-9]+", match => "[" + match.Value + "]"));
 }