Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 8 paź 2008 · The HashSet (Of T) class provides high-performance set operations. A set is a collection that contains no duplicate elements, and whose elements are in no particular order... The capacity of a HashSet (Of T) object is the number of elements that the object can hold.

  2. 9 kwi 2024 · In Java, they're naming conventions for methods starting with get and set. Records : In C#, records can be either class (reference) or struct (value) types. C# records can be immutable, but aren't required to be immutable.

  3. 23 mar 2006 · Setting Up IKVM.NET. Download the binary distribution from the sourceforge site and unzip the contents to C:\ikvm (or X:\ikvm where X is your drive). You would find the ikvm executables and DLLs in the C:\ikvm\bin directory. Open a command or shell window, cd to C:\ikvm\bin, and type ‘ikvm’.

  4. C# has a static class syntax (not to be confused with static inner classes in Java), which restricts a class to only contain static methods. C# 3.0 introduces extension methods to allow users to statically add a method to a type (e.g., allowing foo.bar() where bar() can be an imported extension method working on the type of foo ).

  5. 13 cze 2023 · In this blogpost we will explore some of the key distinctions that Java developers should be aware of when transitioning to C#. 1 - Syntax sugar. Let's explore three language features that C# offers to enhance code readability, which are not present in Java. This is by no means an exhaustive list.

  6. 14 mar 2019 · However, C# has a feature that allows adding new methods to a class without having to modify its code. This feature is called extension methods. In order to create an extension method, you have to create a top-level static class and implement a static method.

  7. No, Java does not have the equivalence. It only has accessor and mutator methods, fancy names for getter and setter methods. For example: public class User { private String name; public String getName () { return this.name; } public void setName (String name) { this.name = name; } } answered Jun 3, 2010 at 4:01.

  1. Ludzie szukają również