add singleton object for constants in c#
This commit is contained in:
		
							parent
							
								
									d5c4c61083
								
							
						
					
					
						commit
						e0249b61b8
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		|  | @ -0,0 +1,14 @@ | |||
| 
 | ||||
| using ServicePoint; | ||||
| 
 | ||||
| public static class ServicePointConstants | ||||
| { | ||||
|     private static readonly Constants _instance = ServicepointBindingUniffiMethods.GetConstants(); | ||||
| 
 | ||||
|     public static readonly ulong PixelWidth = _instance.pixelWidth; | ||||
|     public static readonly ulong PixelHeight = _instance.pixelHeight; | ||||
|     public static readonly ulong PixelCount = _instance.pixelCount; | ||||
|     public static readonly ulong TileWidth = _instance.tileWidth; | ||||
|     public static readonly ulong TileHeight = _instance.tileHeight; | ||||
|     public static readonly ulong TileSize = _instance.tileSize; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vinzenz Schroeter
						Vinzenz Schroeter