![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
69 Views
The Decimal.ToByte() method in C# is used to convert the value of the specified Decimal to the equivalent 8-bit unsigned integer.SyntaxFollowing is the syntax −public static byte ToByte (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToByte() method −using System; public ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
51 Views
The Decimal.GetTypeCode() method in C# is used to returns the TypeCode for value type Decimal.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the Decimal.GetTypeCode() method −using System; public class Demo { public static void Main(){ Decimal val = Decimal.MaxValue; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
69 Views
The Decimal.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 Decimal.GetHashCode() method −using System; public class Demo { public static void Main(){ Decimal val ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
321 Views
The Decimal.Ceiling() method in C# is used to return the smallest integral value greater than or equal to the specified decimal number.SyntaxFollowing is the syntax −public static decimal Ceiling (decimal val);Above, Val is the decimal number.ExampleLet us now see an example to implement the Decimal.Ceiling() method −using System; public class ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
1K+ Views
The Decimal.Add() method in C# is used to add two specified Decimal values.SyntaxFollowing is the syntax −public static decimal Add (decimal val1, decimal val2);Above, va1 is the first decimal to add, whereas val2 is the second decimal to be added.ExampleLet us now see an example to implement the Decimal.Add() method ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
420 Views
The DateTimeOffset.ToUnixTimeSeconds() method in C# is used to return the number of seconds that have elapsed since 1970-01-01T00:00:00Z.SyntaxFollowing is the syntax −public long ToUnixTimeSeconds ();ExampleLet us now see an example to implement the DateTimeOffset.ToUnixTimeSeconds() method −using System; public class Demo { public static void Main() { ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
565 Views
The DateTimeOffset.ToUnixTimeMilliseconds() method in C# is used to return the number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z.SyntaxFollowing is the syntax −public long ToUnixTimeMilliseconds ();ExampleLet us now see an example to implement the DateTimeOffset.ToUnixTimeMilliseconds() method −using System; public class Demo { public static void Main() { ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
494 Views
The DateTimeOffset.ToOffset() method in C# is used to convert the value of the current DateTimeOffset object to the date and time specified by an offset value.SyntaxFollowing is the syntax −public DateTimeOffset ToOffset (TimeSpan val);Above, the value is the offset to convert the DateTimeOffset value to.ExampleLet us now see an example ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
50 Views
The DateTimeOffset.ToLocalTime() method in C# is used to convert the current DateTimeOffset object to a DateTimeOffset object that represents the local time.SyntaxFollowing is the syntax −public DateTimeOffset ToLocalTime ();ExampleLet us now see an example to implement the DateTimeOffset.ToLocalTime() method −using System; public class Demo { public static void Main() ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
32 Views
The DateTimeOffset.ToFileTime() method in C# is used to convert the value of the current DateTimeOffset object to a Windows file time. The method returns an Int64 value of the current DateTimeOffset object, expressed as a Windows file time.SyntaxFollowing is the syntax −public long ToFileTime ();ExampleLet us now see an example ... Read More