public AbstractSnippetFunctionGenerateSwitchCases(AbstractSnippetExpansionClient snippetExpansionClient, ITextView textView, ITextBuffer subjectBuffer, string caseGenerationLocationField, string switchExpressionField) : base(snippetExpansionClient, textView, subjectBuffer) { this.CaseGenerationLocationField = caseGenerationLocationField; this.SwitchExpressionField = (switchExpressionField.Length >= 2 && switchExpressionField[0] == '$' && switchExpressionField[switchExpressionField.Length - 1] == '$') ? switchExpressionField.Substring(1, switchExpressionField.Length - 2) : switchExpressionField; }
public AbstractSnippetFunctionGenerateSwitchCases(AbstractSnippetExpansionClient snippetExpansionClient, ITextView textView, ITextBuffer subjectBuffer, string caseGenerationLocationField, string switchExpressionField) : base(snippetExpansionClient, textView, subjectBuffer) { this.CaseGenerationLocationField = caseGenerationLocationField; this.SwitchExpressionField = (switchExpressionField.Length >= 2 && switchExpressionField[0] == '$' && switchExpressionField[switchExpressionField.Length - 1] == '$') ? switchExpressionField.Substring(1, switchExpressionField.Length - 2) : switchExpressionField; }
public AbstractSnippetFunctionSimpleTypeName( AbstractSnippetExpansionClient snippetExpansionClient, ITextBuffer subjectBuffer, string fieldName, string fullyQualifiedName ) : base(snippetExpansionClient, subjectBuffer) { _fieldName = fieldName; _fullyQualifiedName = fullyQualifiedName; }
public AbstractSnippetFunctionSimpleTypeName(AbstractSnippetExpansionClient snippetExpansionClient, ITextView textView, ITextBuffer subjectBuffer, string fieldName, string fullyQualifiedName) : base(snippetExpansionClient, textView, subjectBuffer) { _fieldName = fieldName; _fullyQualifiedName = fullyQualifiedName; }