private CssSchemaCompletionEntry CreateCompletionEntry(CssCompletionContext context, CssSchemaCompletionEntry entry) { CustomCompletionListEntry interim = new CustomCompletionListEntry(entry.DisplayText, GetArguments(entry.DisplayText)); interim.Description = entry.Description; object[] parameters = new object[] { interim, entry.CompletionProvider, CssTextSource.Document, context.Snapshot.CreateTrackingSpan(context.SpanStart, context.SpanLength, SpanTrackingMode.EdgeExclusive), _glyphService }; BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Instance; return (CssSchemaCompletionEntry)Activator.CreateInstance(typeof(CssSchemaCompletionEntry), flags, null, parameters, null); }
private CssSchemaCompletionEntry CreateCompletionEntry(CssCompletionContext context, CssSchemaCompletionEntry entry) { CustomCompletionListEntry interim = new CustomCompletionListEntry(entry.DisplayText, GetArguments(entry.DisplayText)); interim.Description = entry.Description; object[] parameters = new object[] { interim, entry.CompletionProvider, CssTextSource.Document, context.Snapshot.CreateTrackingSpan(context.SpanStart, context.SpanLength, SpanTrackingMode.EdgeExclusive), _glyphService }; BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Instance; return((CssSchemaCompletionEntry)Activator.CreateInstance(typeof(CssSchemaCompletionEntry), flags, null, parameters, null)); }