[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMethod<TRequest, TResponse>\u003c/code\u003e class represents a remote method in gRPC, serving as a description of the method's functionality.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements the \u003ccode\u003eIMethod\u003c/code\u003e interface, providing a structure for defining remote method properties.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor for the \u003ccode\u003eMethod\u003c/code\u003e class takes parameters such as \u003ccode\u003eMethodType\u003c/code\u003e, \u003ccode\u003eserviceName\u003c/code\u003e, \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003erequestMarshaller\u003c/code\u003e, and \u003ccode\u003eresponseMarshaller\u003c/code\u003e, which are vital to create the instance.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eMethod\u003c/code\u003e class include \u003ccode\u003eFullName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eRequestMarshaller\u003c/code\u003e, \u003ccode\u003eResponseMarshaller\u003c/code\u003e, \u003ccode\u003eServiceName\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, detailing the method's identity and message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMethod\u003c/code\u003e class is constructed with generic type parameters \u003ccode\u003eTRequest\u003c/code\u003e and \u003ccode\u003eTResponse\u003c/code\u003e, which define the types of the request and response messages, respectively.\u003c/p\u003e\n"]]],[],null,["# Class Method<TRequest, TResponse> (2.66.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.66.0 (latest)](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Method-2)\n- [2.63.0](/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.Method-2)\n- [2.48.0](/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.Method-2) \n\n public class Method\u003cTRequest, TResponse\u003e : IMethod\n\nA description of a remote method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Method\\\u003cTRequest, TResponse\\\u003e \n\nImplements\n----------\n\n[IMethod](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IMethod) \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Grpc.Core](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core)\n\nAssembly\n--------\n\nGrpc.Core.Api.dll\n\nConstructors\n------------\n\n### Method(MethodType, string, string, Marshaller\\\u003cTRequest\\\u003e, Marshaller\\\u003cTResponse\\\u003e)\n\n public Method(MethodType type, string serviceName, string name, Marshaller\u003cTRequest\u003e requestMarshaller, Marshaller\u003cTResponse\u003e responseMarshaller)\n\nInitializes a new instance of the `Method` class.\n\nProperties\n----------\n\n### FullName\n\n public string FullName { get; }\n\nGets the fully qualified name of the method. On the server side, methods are dispatched\nbased on this name.\n\n### Name\n\n public string Name { get; }\n\nGets the unqualified name of the method.\n\n### RequestMarshaller\n\n public Marshaller\u003cTRequest\u003e RequestMarshaller { get; }\n\nGets the marshaller used for request messages.\n\n### ResponseMarshaller\n\n public Marshaller\u003cTResponse\u003e ResponseMarshaller { get; }\n\nGets the marshaller used for response messages.\n\n### ServiceName\n\n public string ServiceName { get; }\n\nGets the name of the service to which this method belongs.\n\n### Type\n\n public MethodType Type { get; }\n\nGets the type of the method."]]