Let's take a look at some of the legal provisions on the delegate - agent statement:
See: Avenue Legal Network
1, what is a proxy:
Agent refers to the representation of the agent (also known as the person), and the legal consequences are directly affected by the proxy in the name of the agent (also known as the person). Among them, people who implement civil legal acts for others are called agents; others who have made their own name for civil legal behavior, and to withstand legal consequences, called by agents. The agency activity involves the tripartite main body, which is a proxy legal relationship, but also contains three parts. First, the basic legal relationship between the agent and the agent, such as the commission of the contract; the second is the civil legal act of the agent and the third person, called agency behavior; third is the agent and the third person Between legal consequences of agents, that is, some legal relationships based on agents, change or eliminate.
2, what is a delegation agent:
The entrustment agent is a proxy relationship generated by the agent's entrusted authorization. Accordingly, the agent is also known as a delegate agent, and the agent is also known as the entrusting person. Entrusted agent generally established on a particular basic legal relationship, which can be a labor contract relationship, partnership, work duty relationship, and most is the contractual relationship, that is, the principal and trustee agreed, the trustee handles the contract It is in this sense that it is called a delegate agent. At the same time, it must also be established by the agent to grant agency right to the agent and entrust a proxy relationship. Therefore, the authorization will of the agent is the key to the final establishment of the entrusted agent relationship. Therefore, it is also known as the agent. If the cenmins entrusted the lawyer's agency civil lawsuit, it is necessary to pay the contract with the law firm, but also to the lawyer to deliver the authorized commission, which can be founded, it can be seen, the entrusted agent is based on the basic legal relationship of the existence, generally a commission contract And the generation of the agency is authorized. Therefore, you should pay attention to the difference between commission contracts and authorization.
The entrusted agent is one of the important means of citizens and legal people for commodity exchange. Its application range is the most widely used.
Take a look at the definition of the delegated on the MSDN:
Quotation: commission
Delegation is a reference type, which references the type of Shared method or an instance method of an object. In other languages, the most close to the delegate is the function pointer, but the function pointer can only reference the Shared function, and the delegate can reference the Shared and instance methods. In the latter case, the delegate not only stores references to method entry points, but also stores references to object instances for calling methods.
Any attribute specified in the method declaration is applicable to the delegate itself. Method declarations cannot have modifications, Handles clauses, IMPLEMENTS clauses, methods, and end configurations. The access type and parameter type of parameter type must be the same as the accessible domain of the commission itself, or it's supercoming.
Members of the commission are members of inherited from class system.delegate. The commission also contains constructor and method sets defined by the system. Because these are all specified and implemented by .NET Framework, they are not listed here.
Define and use the commission of three steps: declaration, instantiation, and call.
Clealed from: event and commission
The delegate is a class that can be referenced by methods. Unlike other classes, the delegate class has a signature, and it can only be referenced to the method that matches its signature. In this way, the commission is equivalent to a type of security function pointer or a callback. Although there are many other purposes, only the entrusted event processing functions are discussed here.
A commission declared enough to define a commission. The declaration provides a delegate signature, and the public language runtime is implemented.