mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Test serialization yaml
This commit is contained in:
		
							parent
							
								
									c3deb8adc1
								
							
						
					
					
						commit
						bb6e12ede4
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -13,6 +13,8 @@ using System.Text; | ||||||
| using System.Text.RegularExpressions; | using System.Text.RegularExpressions; | ||||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||||
| using Xamarin.Forms; | using Xamarin.Forms; | ||||||
|  | using YamlDotNet.Serialization; | ||||||
|  | using YamlDotNet.Serialization.NamingConventions; | ||||||
| 
 | 
 | ||||||
| namespace AideDeJeuCmd | namespace AideDeJeuCmd | ||||||
| { | { | ||||||
|  | @ -318,8 +320,13 @@ namespace AideDeJeuCmd | ||||||
|                 var monstersHD = await context.MonstersHD.ToListAsync(); |                 var monstersHD = await context.MonstersHD.ToListAsync(); | ||||||
|                 var monstersVO = await context.MonstersVO.ToListAsync(); |                 var monstersVO = await context.MonstersVO.ToListAsync(); | ||||||
|                 var spells = await context.Spells.ToListAsync(); |                 var spells = await context.Spells.ToListAsync(); | ||||||
|  | 
 | ||||||
|  |                 var serializer = new SerializerBuilder().WithNamingConvention(new PascalCaseNamingConvention()).Build(); | ||||||
|  |                 var yaml = serializer.Serialize(spells.FirstOrDefault()); | ||||||
|  |                 Console.WriteLine(yaml); | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|             return; |             return; | ||||||
|             await ReorderSpellsAsync(); |             await ReorderSpellsAsync(); | ||||||
|             return; |             return; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez