首页 \ 问答 \ 我的手机在设置中型号就显示android什么意思

我的手机在设置中型号就显示android什么意思

在网上买的手机 HTC的 在手机设置关于手机 型号就显示android 插在豌豆荚也显示这个 手机后面也没显示 手机串号是352811041648514我不明白我的手机是什么型号了 懂得帮我查下 谢谢
更新时间:2023-10-21 22:10

最满意答案

出于接口实现或虚方法覆盖的目的,C#不支持返回类型协方差 。 详情请看这个问题:

C#支持返回类型协方差吗?

C#支持从C#4开始的类型参数的引用类型构造的接口和委托类型的泛型协变和逆变

将返回引用类型的方法转换为返回类型为兼容引用类型的委托类型时,C#支持返回类型协方差 (同样它支持参数类型的变换 。)

如果这个主题引起您的兴趣,我已经写了很多文章来讨论C#不支持的各种版本差异。 看到

https://blogs.msdn.microsoft.com/ericlippert/tag/covariance-and-contravariance/

了解详情。


C# does not support return type covariance for the purposes of interface implementation or virtual method overrding. See this question for details:

Does C# support return type covariance?

C# does support generic covariance and contravariance of interfaces and delegate types that are constructed wtih reference types for the type arguments as of C# 4.

And C# does support return type covariance when converting a method that returns a reference type to a delegate type whose return type is a compatible reference type. (And similarly it supports parameter type contravariance.)

If this subject interests you, I have written a great many articles discussing various versions of variance that C# does and does not support. See

https://blogs.msdn.microsoft.com/ericlippert/tag/covariance-and-contravariance/

for details.

相关问答

更多
  • 出于接口实现或虚方法覆盖的目的,C#不支持返回类型协方差 。 详情请看这个问题: C#支持返回类型协方差吗? C#支持从C#4开始的类型参数的引用类型构造的接口和委托类型的泛型协变和逆变 。 当将返回引用类型的方法转换为返回类型为兼容引用类型的委托类型时,C#支持返回类型协方差 。 (同样它支持参数类型的变换 。) 如果这个主题引起您的兴趣,我已经写了很多文章来讨论C#不支持的各种版本差异。 看到 https://blogs.msdn.microsoft.com/ericlippert/tag/covari ...
  • 当您谈论设计模式和最佳编码实践时, 需要的不是您应该问自己的问题。 你不需要你做的大部分工作,至少不是立即做的。 当然,在实际操作之前,您不知道是否需要不同的合同实现。 所以这不是你现在需要什么的问题。 这是你希望以后会有什么问题。 你在发布的链接中看到的是SOLID中的D : 依赖倒置原则 : 取决于抽象,而不是实现。 你知道,你比对不起更安全。 编辑:另外,我建议不要接口(或前缀)的sufixes。 如果您将使用接口而不是实现,请将接口名称清除。 在您的情况下,通常的选择是接口的UserServiceI ...
  • 来自MSDN : 接口仅包含方法 , 委托或事件的签名。 方法的实现是在实现接口的类中完成的, From MSDN: An interface contains only the signatures of methods, delegates or events. The implementation of the methods is done in the class that implements the interface,
  • 对于接口中的每个成员,编译器只需要查找一个显式实现(如果有的话),然后查找一个公共实现( 隐式实现),即在公共API上匹配接口签名的方法。 在这种情况下, A.FooMethod()看起来像一个公共实现的精细匹配。 如果B对该选择不满意,可以使用new的方法,或者使用明确的实现; 后者将是首选: void IFoo.FooMethod() { /* explicit implementation */ } For each member in the interface, the compiler sim ...
  • implements意味着实现,当interface意图声明只提供interface不用于实现。 一个100%的abstract class在功能上等同于一个interface但是如果你希望(在这种情况下它不会保持100% abstract ),它也可以实现,所以从JVM的角度来看,它们是不同的。 100%抽象类中的成员变量也可以有任何访问限定符,在这个接口中,它们是隐式的public static final 。 implements means implementation, when interfac ...
  • 这有什么问题: public interface ITransaction { } public interface IVolatileTransaction : ITransaction where T : ITransaction { } What's wrong with this: public interface ITransaction { } public interface IVolatileTransaction : ITransaction where T : I ...
  • 是。 您可以。 public abstract class BaseUser : IUser { } public class User : BaseUser { } public class AdminUser : BaseUser { } Yes. You can. public abstract class BaseUser : IUser { } public class User : BaseUser { } public class AdminUser : BaseUse ...
  • class Bar implements Fooable { Foo(n: number): string; Foo(n: string): string; Foo(n: any) { if(typeof n === 'number') { return n + ' is a number'; } else if(typeof n === 'string') { return n + ' is a s ...
  • 据我了解你的问题(从评论交换),一些处理程序可以处理任何类型的T (或许多类型T ),而其他处理程序只能处理一种类型。 此外,您希望以多态方式在一个使用者中使用这些处理程序。 这是你可以做的事情: 像这样创建两个接口: public interface IHandler //Can handle many types { T Process(int process); bool CanProcess(); } public interface IHandler //Ca ...
  • 简答:你不能。 您可以做的是提供实现一个或另一个接口的视图。 例如: public class OnePossibleSolution { // no "implements" private String interface1Method() { return "whatever"; } public Interface1 asInterface1() { return new Interface1() { @Overri ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)