An editor for Microsoft Adaptive Cards that supports the new templating language and DOESN'T use JavaScript, because JavaScript isn't a real programming language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
927 B

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation.Metadata;
namespace Monaco
{
/// <summary>
/// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.snippetstring.html
/// https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets
/// </summary>
public sealed class SnippetString
{
[JsonProperty("value")]
public string Value { get; set; }
public SnippetString(string svalue)
{
Value = svalue;
}
}
public static class StringExtensions2
{
public static SnippetString ToSnippetString(this string svalue)
{
return new SnippetString(svalue);
}
}
}