In C#, we can use:
Please look at the following code, GetManager is a method, IsValid is also a method. Of course, GetManager will return an object. Ultimately, GetManager().IsValid(fileName) is actually an invocation of the ‘objectName.method’ type. But in form, GetManager().IsValid(fileName) is still a ‘method.method’ type of invocation.
My question is: Is there a specific term to define this ‘method.method’ syntax in C#? I want to search for this syntax knowledge based on the specific term.
public class LogAnalyzerUsingFactoryMethod
public bool IsValidLogFileName(string fileName)
protected virtual IExtensionManager GetManager()
return new FileExtensionManager();