本文介绍了什么是<>和< T>的用途是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是<>和< T>的用途是什么

在下面,

类-元组< T1,T2,T3,T4,T5,T6,T7>类
类别-懒惰T类
类别-WeakReference< T>类

结构-ArraySegment T结构

接口-IObservable T界面

代表-Func< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,TResult>委托
委托-动作< T1,T2>委托


-----------

在以上的类,结构,接口,代理,<>中, & < T>来了
是什么,有什么用?

如何使用这些< T>有效地

what is <> and <T>, what is its use

in the following,

Class - Tuple<T1, T2, T3, T4, T5, T6, T7> Class
Class - Lazy<T> Class
Class - WeakReference<T> Class

Structure - ArraySegment<T> Structure

Interface - IObservable<T> Interface

Delegate - Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> Delegate
Delegate - Action<T1, T2> Delegate


-----------

In above Class, Structure, Interface, Delegate, <> & <T> comes
What is it , what are its Uses ?

How to use these <T> effectively

推荐答案


(6 &amp; 2) = 2
(10 & 5) = 0
(20 & 25) = 16
(123 & 20) = 16



最终结果是:

比较其中每个的二进制表示.



final result is:

Compare the binary representations of each of those.

 110 &     010 =     010
   1010 &    0101 =    0000
  10100 &   11001 =   10000
1111011 & 0010100 = 0010000


在每种情况下,仅当输入的左右两侧均为1时,结果中的数字才为1.

问候
sarva


In each case, a digit is 1 in the result only when it is 1 on both the left AND right side of the input.

regards
sarva



这篇关于什么是&lt;&gt;和&lt; T&gt;的用途是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 13:13
查看更多