- Trending Categories
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
Found 2628 Articles for Csharp
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
282 Views
The Int32.MaxValue field in C# is used to represent the smallest possible value of an Int32.SyntaxFollowing is the syntax −public const int MinValue = -2147483648;ExampleLet us now see an example to implement the Int32.MinValue field &miuns;sing System; public class Demo { public static void Main(){ int val1 = 23; int val2 = 0; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); Console.WriteLine("HashCode for value1 = "+val1.GetHashCode()); Console.WriteLine("HashCode for value2 = "+val2.GetHashCode()); Console.WriteLine("Are they equal? = "+(val1.Equals(val2))); TypeCode ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
335 Views
The Int32.MaxValue field in C# is used to represent the largest possible value of an Int32.SyntaxFollowing is the syntax −public const int MaxValue = 2147483647;ExampleLet us now see an example to implement the Int32.MaxValue field −using System; public class Demo { public static void Main(){ int val1 = 23; int val2 = 23; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); Console.WriteLine("HashCode for value1 = "+val1.GetHashCode()); Console.WriteLine("HashCode for value2 = "+val2.GetHashCode()); Console.WriteLine("Are they equal? = "+(val1.Equals(val2))); TypeCode ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
67 Views
The Uri.Equals() method in C# compares two Uri instances for equality.SyntaxFollowing is the syntax −public override bool Equals (object comparand);Above, the parameter comparand is the Uri instance or a URI identifier to compare with the current instance.ExampleLet us now see an example to implement the Uri.Equals() method −using System; public class Demo { public static void Main(){ Uri newURI1 = new Uri("https://www.tutorialspoint.com/index.htm"); Console.WriteLine("URI = "+newURI1); Uri newURI2 = new Uri("https://www.tutorialspoint.com/index.htm"); Console.WriteLine("URI = "+newURI2); if(newURI1.Equals(newURI2)) Console.WriteLine("Both the URIs are equal!"); ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
78 Views
The Uri.CheckSchemeName() method in C# is used to determine whether the specified scheme name is valid.syntaxFollowing is the syntax −public static bool CheckSchemeName (string schemeName);Above, the parameter scheme name is the scheme name to validate.ExampleLet us now see an example to implement the Uri.CheckSchemeName() method −using System; public class Demo { public static void Main(){ Uri newURI = new Uri("https://www.tutorialspoint.com"); Console.WriteLine("URI = "+newURI); string schemeName = newURI.Scheme; if(Uri.CheckSchemeName(schemeName)) Console.WriteLine("Valid: Scheme name"); else Console.WriteLine("Invalid: Scheme name"); ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
238 Views
The Uri.CheckHostName() method in C# is used to determine whether the specified hostname is a valid DNS name.SyntaxFollowing is the syntax −public static UriHostNameType CheckHostName (string host_name);ExampleLet us now see an example to implement the Uri.CheckHostName() method −using System; public class Demo { public static void Main(){ string strURI = "http://localhost"; Console.WriteLine("URI = "+strURI); UriHostNameType res = Uri.CheckHostName(strURI); Console.WriteLine("Host type = "+res); } }OutputThis will produce the following output −URI = http://localhost Host type = UnknownExampleLet us now see another example to implement the Uri.CheckHostName() method ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
353 Views
The UInt64.ToString() method in C# is used to convert the numeric value of the current UInt64 instance to its equivalent string representation.SyntaxFollowing is the syntax −public override string ToString();ExampleLet us now see an example to implement the UInt64.ToString() method −using System; public class Demo { public static void Main(){ ulong val1 = 465656665; ulong val2 = 232525678; Console.WriteLine("Value1 (String representation) = "+val1.ToString()); Console.WriteLine("Value2 (String representation) = "+val2.ToString()); bool res = val1.Equals(val2); Console.WriteLine("Return value (comparison) = "+res); if (res) ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
260 Views
The closest() method in jQuery is used to return the first ancestor of the selected element.SyntaxThe syntax is as follows −$(selector).closest(filter)ExampleLet us now see an example to implement the jQuery closest() method − .demo * { display: block; border: 2px solid blue; padding: 5px; margin: 15px; } $(document).ready(function(){ $("span").closest("ol").css({"background-color": "orange", "color": "black","border": "3px dashed orange"}); }); body ol ol ol li span OutputThis will produce the following output −
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
243 Views
The fadeIn() method in jQuery is used to change the opacity, for selected elements, from hidden to visible.SyntaxThe syntax is as follows −$(selector).fadeIn(speed, easing, callback)ExampleAbove, speed is the speed of the fading effect. The easing can be swing or linear for speed at different animation points. Callback is the function to be executed after the method gets finished.Let us now see an example to implement the jQuery fadeIn() method − $(document).ready(function(){ $(".btnout").click(function(){ $("div").fadeOut(); }); $(".btnin").click(function(){ $("div").fadeIn(); ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
67 Views
The UInt64.MinValue field in C# represents the minimum value of the 64-bit unsigned integer.SyntaxFollowing is the syntax −public const ulong MinValue = 0;ExampleLet us now see an example to implement the UInt64.MinValue field −using System; public class Demo { public static void Main(){ ulong val1 = 879879879; ulong val2 = 464556565; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); Console.WriteLine("HashCode for value1 = "+val1.GetHashCode()); Console.WriteLine("HashCode for value2 = "+val2.GetHashCode()); Console.WriteLine("Are they equal? = "+(val1.Equals(val2))); TypeCode type1 = ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
136 Views
The UInt64.MaxValue field in C# represents the maximum value of the 64-bit unsigned integer.SyntaxFollowing is the syntax −public const ulong MaxValue = 18446744073709551615;ExampleLet us now see an example to implement the UInt64.MaxValue field −using System; public class Demo { public static void Main(){ ulong val1 = 879879879; ulong val2 = 464556565; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); Console.WriteLine("HashCode for value1 = "+val1.GetHashCode()); Console.WriteLine("HashCode for value2 = "+val2.GetHashCode()); Console.WriteLine("Are they equal? = "+(val1.Equals(val2))); TypeCode type1 = ... Read More