Test

De Banane Atomic
Aller à la navigationAller à la recherche

List and break

  1. Step1
  2. Step 2 has some code:
Bash.svg
Totally
some
bash lines
here
  1. Step 3

pre

yyy

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; }
   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 {

} </syntaxhighlight>

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));

SyntaxHighlight

var v = new StringBuilder();

var v = new StringBuilder();

no highlight

Cs.svg
var myObject = new MyCLass();
Cs.svg
var myObject = new MyCLass();
Bash.svg
var myObject = new MyCLass();

ini

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

listes

  • un
    • deux
      • trois
  • dix
    • trente
  • un
    • deux
    • 22
      • trois
  • plus
  • plus
  • moins
  • moins
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois

SVG

Bash.svg
1.svg
Fichier:ASP.NET Core.svg