0

What does . mean in c sharp?

How do I use it? what is it used for and some examples would be amazing :) thanks

3rd Dec 2018, 8:40 PM
Evan11010
2 odpowiedzi
0
Microsoft docs are a good source to get information about C# along with other .NET languages: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operator
3rd Dec 2018, 10:18 PM
TurtleShell
TurtleShell - avatar
0
The dot operator (.) is used for member access. The dot operator specifies a member of a type or namespace. For example, the dot operator is used to access specific methods within the .NET Framework class libraries. Example : Class Exam { public int a; } void string Main(){ Exam ple = new Exam(); ple.a = 8; Console.WriteLine(ple.a); For more information: https://stackoverflow.com/questions/24891371/about-the-dot-operator-of-c-sharp
7th Dec 2018, 9:10 AM
Afif Priya Wardana
Afif Priya Wardana - avatar