コード例 #1
0
ファイル: ExpressionExtensions.cs プロジェクト: tkholmes/moq4
 internal static string ToStringFixed(this Expression expression, bool useFullTypeName)
 {
     if (useFullTypeName)
     {
         return(ExpressionStringBuilder.GetString(expression, type => type.FullName));
     }
     else
     {
         return(ExpressionStringBuilder.GetString(expression, type => type.Name));
     }
 }
コード例 #2
0
 /// <devdoc>
 /// TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
 /// is fixed.
 /// </devdoc>
 public static string ToStringFixed(this Expression expression)
 {
     return(ExpressionStringBuilder.GetString(expression));
 }
コード例 #3
0
 /// <devdoc>
 /// TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
 /// is fixed.
 /// </devdoc>
 public static string ToStringFixed(this Expression expression, bool useFullTypeName = false)
 {
     return(ExpressionStringBuilder.GetString(expression, useFullTypeName));
 }