In c# code, i found this implement.
I tried to find out what this in and out meaning, but only explanation of out keyword in there.
So what these in and out keyword do?
public delegate Tb Reader<in Ta, out Tb>( Ta a );
They make possible to do like below example.
Reader<string,object> first = someString => return someObject;
Reader<object,string> second= someObject => return someString;
first=second;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.