![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11365 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
137 Views
The Int32.CompareTo method in C# is used to compare this instance to a specified object or Int32 and returns an indication of their relative values.SyntaxFollowing is the syntax −public int CompareTo (int val); public int CompareTo (object val);Above, the value of the 1st syntax is an integer to compare, whereas, ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
66 Views
The Int16.MinValue field in C# represents the smallest possible value of an Int16.SyntaxFollowing is the syntax −public const short MinValue = -32768;ExampleLet us now see an example to implement the Int16.MinValue field −using System; public class Demo { public static void Main(){ short val1 = 23; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
140 Views
The Int16.MaxValue field in C# represents the largest possible value of an Int16.SyntaxFollowing is the syntax −public const short MaxValue = 32767;ExampleLet us now see an example to implement the Int16.MaxValue field −using System; public class Demo { public static void Main(){ short val1 = 23; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
56 Views
The Int16.GetTypeCode() method in C# is used to return the TypeCode for value type Int16.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the Int16.GetTypeCode() method −using System; public class Demo { public static void Main(){ short val1 = 0; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
58 Views
The Int16.GetHashCode() method in C# is used to return the hash code for the current instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the Int16.GetHashCode() method −using System; public class Demo { public static void Main(){ short val1 ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
662 Views
The DateTime.AddTicks() method in C# is used to add a specified number of ticks to the value of this instance. It returns a new DateTime.SyntaxFollowing is the syntax −public DateTime AddTicks (long ticks);Here, ticks value is for 100-nanosecond.ExampleLet us now see an example to implement the DateTime.AddTicks() method −using System; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
2K+ Views
The DateTime.AddSeconds() method in C# is used to add the specified number of seconds to the value of this instance. This returns a new DateTime.SyntaxFollowing is the syntax −public DateTime AddSeconds (double sec);Here, sec is the seconds to be added. If you want to subtract seconds, then set a negative ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
4K+ Views
The DateTime.AddMonths() method in C# is used to add the specified number of months to the value of this instance.SyntaxFollowing is the syntax −public DateTime AddMonths (int val);Above, Val is the number of months. If you want to subtract months, then set it as negative.ExampleLet us now see an example ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
572 Views
The Decimal.Compare() method in C# is used to compare two specified Decimal values.SyntaxFollowing is the syntax −public static int Compare (decimal val1, decimal val2);Above, val1 is the first value to compare, whereas Val is the second value to compare.The return value is less than zero if val1 is less than ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
127 Views
The Type.GetMembers() method in C# is used to get the members (properties, methods, fields, events, etc.) of the current Type.SyntaxFollowing is the syntax −public System.Reflection.MemberInfo[] GetMembers (); public abstract System.Reflection.MemberInfo[] GetMembers (System.Reflection.BindingFlags bindingAttr);ExampleLet us now see an example to implement the Type.GetMembers() method −using System; using System.Reflection; public class Demo ... Read More