Uri.Inequality() Operator is used to compare two Uri objects. If two Uri objects contain the same Uri, then it returns the false otherwise it returns true.
public static bool operator != (Uri uri1, Uri uri2);
Parameter: This method has the following parameters:
uri1: This parameter is the first Uri to be compared.
uri2: This parameter is the second Uri to be compared.
Return Value: This method returns the Boolean value. It returns the true if the Uri instances are not equivalent, otherwise false.
Below programs illustrate the use of Uri.Inequality() Operator:
address1 is Equals to address2
http://www.gfg.com/ is Equals to http://www.gfg.com/ http://www.abcd.com/ is not Equals to http://www.geeksforgeeks.org/
- Uri.Equality() Operator in C# with Examples
- C# | is Operator Keyword
- C# | as Operator Keyword
- sizeof() Operator in C#
- Is vs As operator keyword in C#
- LINQ | Set Operator | Except
- C# | Operator Overloading
- LINQ | Filtering Operator | where
- LINQ | Element Operator | Last
- LINQ | Set Operator | Distinct
- LINQ | Set Operator | Intersect
- LINQ | Set Operator | Union
- Null-Coalescing Operator in C#
- typeof Operator Keyword in C#
- LINQ | Quantifier Operator | All
- LINQ | Partition Operator | Take
- LINQ | Quantifier Operator | Any
- LINQ | Quantifier Operator | Contains
- LINQ | Element Operator | First
- LINQ | Partition Operator | TakeWhile
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.