csharp int to short

Code Example - csharp int to short

                
                        int max =120;
short min=(short)max;
                    
                
 

convert int to short csharp

                        
                                int vIn = 0;
short vOut = Convert.ToInt16(vIn);
                            
                        
 

Related code examples