- 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
365 Views
The Array.FindLast() method in C# is used to search for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire Array.SyntaxFollowing is the syntax −public static T FindLast (T[] array, Predicate match);Above, array is the one-dimensional, zero-based Array to search, whereas ... Read More
AmitDiwan
363 Views
The DateTime.ToFileTime() method in C# is used to convert the value of the current DateTime object to a Windows file time.SyntaxFollowing is the syntax −public long ToFileTime ();ExampleLet us now see an example to implement the DateTime.ToFileTime() method −using System; public class Demo { public static void Main() { ... Read More
AmitDiwan
590 Views
The DateTime.ToBinary() method in C# is used to serialize the current DateTime object to a 64-bit binary value that can be used to recreate the DateTime object. The return value is a 64-bit signed integer.SyntaxFollowing is the syntax −public long ToBinary ();ExampleLet us now see an example to implement the ... Read More
AmitDiwan
934 Views
The DateTime.Subtract() method in C# is used to subtract the specified DateTime or span.SyntaxFollowing is the syntax −public TimeSpan Subtract (DateTime value); public DateTime Subtract (TimeSpan value);ExampleLet us now see an example to implement the DateTime.Subtract() method −using System; public class Demo { public static void Main() { ... Read More
AmitDiwan
190 Views
The Tuple class represents a 2-tuple, which is called pair. A tuple is a data structure that has a sequence of elements.ExampleLet us now see an example to implement the 2-tuple in C# −using System; public class Demo { public static void Main(string[] args) { Tuple ... Read More
AmitDiwan
60 Views
The DateTimeOffset.CompareTo() method in C# is used to compares the current DateTimeOffset object to a specified DateTimeOffset object and indicates whether the current object is earlier than, the same as, or later than the second DateTimeOffset object.It returns an integer value, 0 − If this object is later than ValSyntaxFollowing ... Read More
AmitDiwan
4K+ Views
The DateTime.SpecifyKind() method in C# is used to create a new DateTime object that has the same number of ticks as the specified DateTime but is designated as either local time, Coordinated Universal Time (UTC), or neither, as indicated by the specified DateTimeKind value.SyntaxFollowing is the syntax −public static DateTime ... Read More
AmitDiwan
28 Views
The Decimal.ToUInt16() method in C# is used to convert the value of the specified Decimal to the equivalent 16-bit unsigned integer.SyntaxFollowing is the syntax −public static ushort ToUInt16 (decimal val);Above, the value val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToUInt16() method −using ... Read More
AmitDiwan
140 Views
The Math.BigMul() method in C# is used to calculate the full product of two 32-bit numbers. The method returns an Int64 integer with the production of both the numbers.SyntaxFollowing is the syntax −public static long BigMul (int val1, int val2);Here, val1 is the 1st number to multiply, whereas val2 is ... Read More
AmitDiwan
253 Views
The Math.Atan2() method in C# is used to return the angle whose tangent is the quotient of two specified numbers.SyntaxFollowing is the syntax −public static double Atan2 (double val1, double val2);Above, val1 is the y coordinate, whereas val2 is the x coordinate.ExampleLet us now see an example to implement Math.Atan2() ... Read More