热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

模拟考试

设为首页

收藏此页面

订阅邮箱地址

C# 面试题与答案

问题 1. Whats the advantage of using System.Text.StringBuilder over System.String?

StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time its being operated on, a new instance is created.

这有帮助吗? 添加评论 查看评论
 

问题 2. Can you store multiple data types in System.Array?

You never use System. Array directly. You can store items whose data type is equivalent to, or derived from, the data type of the array. This means that you can store multiple data types, provided that they derive from a common base type, or implement a common interface.

Example:
If you want to store different types, use System.Collections.ArrayList or object[]

这有帮助吗? 添加评论 查看评论
 

问题 3. Whats the difference between the System.Array.CopyTo() and System.Array.Clone()?

The first one performs a deep copy of the array, the second one is shallow.

这有帮助吗? 添加评论 查看评论
 

问题 4. How can you sort the elements of the array in descending order?

By calling Sort() and then Reverse() methods.

这有帮助吗? 添加评论 查看评论
 

问题 5. Whats the .NET datatype that allows the retrieval of data by a unique key?

HashTable.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。