摘要:        
C#中使用结构体实现Union数据类型: C#中不自带Union数据类型,可以使用以下方式实现: 引用:using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropSer    阅读全文
posted @ 2020-04-27 20:39
小大大小
阅读(2962)
评论(0)
推荐(1)
        
            
        
        
摘要:        
C#中byte[]4位数组转换为float类型浮点数: float占4位,byte占1位,4个byte可以转换为一个浮点数。 byte[] byteTemp = new byte[8] { 0x76, 0x83, 0x33, 0x45 }; float fTemp = BitConverter.To    阅读全文
posted @ 2020-04-27 20:33
小大大小
阅读(18079)
评论(0)
推荐(1)
        
            
        
        
摘要:        
C#中自定义一个Brush,使用Color赋RGB值给Brush: Brush MyBrush = new SolidBrush(Color.FromArgb(255, 0, 0));    阅读全文
posted @ 2020-04-27 20:27
小大大小
阅读(3930)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号