Home » F# Self Identifier

F# Self Identifier

by Online Tutorials Library

F# Self Identifier

In F#, self is used to refer current object of class type. Self is same as this keyword in C# and java. You can name the self identifier however you want. You are not restricted to names such as this or self as in .Net languages.


F# Self (this) Example

Output:

100 Rajkumar  
Next TopicF# Static

You may also like