Func is the unified network controller of the red hat company Fedora platform.
FuncFedora UnifiedNetwork Controller https://fedorahosted.org/func), designed to solve this series of unified management and monitoring issues and developed the basic
Func common modules and APIs
Func provides a very rich range of functional modules, including:
Commandmodule (Execute command)Copyfilemodule (copy file)Cpumodule (CPU information)Diskmodule (disk information)Filetrackermodule (file
C # delegate introduction (delegate, Action, Func, predicate ),A delegate is a class that defines the type of a method so that the method can be passed as a parameter of another method. An event is a special delegate.
1. Delegate statement
(1).
Idle in the morning, see action OptimizationCodeSmall StructureArticleAnd it is much more readable and scalable than normal if... else or switch... case.
Here, I will use other people's information to learn about it again.
From the initial
Action
Action
Func
Func
Action: encapsulates a method that does not have parameters and does not return a valuepublic delegate void Action ()The action:action generic implements the definition of 1 to 16 incoming parameters, but
C # system delegate Action And Func,
Action: encapsulate a method that does not have parameters and does not return values.
public delegate void Action()
Action : the generic type of Action defines 1 to 16 input parameters, but there is still no
Delegation plays an extremely important role in C # programming. A delegate can encapsulate a function into a delegate object, and multiple delegates can be combined into one delegate, the delegate object can be stored and transferred like a normal
Delegation plays an extremely important role in C # programming. A delegate can encapsulate a function into a delegate object, and multiple delegates can be combined into one delegate, the delegate object can be stored and transferred like a normal
Generic action delegation and func delegation are two generic delegation defined by the system.
Action delegate indicates referencing a method with a return type of void. This delegate has different variations and can pass up to 16 different
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.