mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 07:56:07 +02:00
Add vb code;person example (#1052)
This commit is contained in:
+3
-3
@@ -23,9 +23,9 @@ namespace ArticleExample
|
||||
// <Converter>
|
||||
private class NameConverter : IValueConverter
|
||||
{
|
||||
private static NameConverter _instance;
|
||||
public static NameConverter Instance => //_instance ??= new NameConverter();
|
||||
_instance ?? (_instance = new NameConverter());
|
||||
private static NameConverter _instance = new();
|
||||
|
||||
public static NameConverter Instance => _instance;
|
||||
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
|
||||
$"[[ {value} ]]";
|
||||
|
||||
+2
@@ -2,9 +2,11 @@
|
||||
|
||||
namespace ArticleExample
|
||||
{
|
||||
//<Person>
|
||||
class Person
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public DateTime Birthdate { get; set; }
|
||||
}
|
||||
//</Person>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user