Test highlightjs

De Banane Atomic
Révision datée du 4 avril 2023 à 09:44 par Nicolas (discussion | contributions) (Page créée avec « = MySQL = <kode lang='mysql'> # comment -- comment →‎comment : </kode> = ini = <filebox fn='test.ini'> [section] cle = valeur # comment // comment ; comment </filebox> = Highlight issues = <kode lang='cs'> namespace MyNamespace { // code } // replaced by namespace MyNamespace; // code [Attributes] [Attributes()] [Attributes("xxx")] public interface IInterface { public int MyProperty { get; set; } public List<int> MyProperty2 { get; set; } p... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche

MySQL

Mysql.svg
# comment
-- comment
/* comment */

ini

test.ini
[section]
cle = valeur
# comment
// comment
; comment

Highlight issues

Cs.svg
namespace MyNamespace
{
    // code
}

// replaced by
namespace MyNamespace;

// code

[Attributes]
[Attributes()]
[Attributes("xxx")]
public interface IInterface
{
    public int MyProperty { get; set; }
    public List<int> MyProperty2 { get; set; }
    public Task<List<int>> MyProperty2 { get; set; }
    public MyClass MyProperty3 { get; set; }

    public void MyMethod()
    {

    }

    public int[] MyMethod1(int[] param)
    {
        return 0;
    }

    public List<int> MyMethod2(List<int> param)
    {
        return new List<int>();
    }

    public Task<List<int[]>> MyMethod2(List<Class[]> param)
    {
        var v = 10;
        var v = new List<int>();
        List<int> v = new List<int>();

        var v = $"test {test} test";

        MyMethod(param1, "param2");
        var v = MyMethod(param1, "param2");

        return new List<int>();
    }
}

public class MyClass<T> where T : class
{

}
Cs.svg
// StackPanel
stackPanel.SetValue(StackPanel.OrientationProperty, Orientation.Horizontal);

// MyEnum
enum MyEnum {}

// value
var value = 0;

// CreateMap<D, IEnumerable<FlatD>>
cfg.CreateMap<D, IEnumerable<FlatD>>()
       .ConvertUsing<DToFlatDConverter>();

// Map<IEnumerable<FlatD>>
var flatDs = mapper.Map<IEnumerable<FlatD>>(d).ToList();

// IEnumerable
IEnumerable<(int groupId, int userId)> groupAndUserList = group.UserIds.Select(x => ValueTuple.Create(group.Id, x));