云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > Application Development with.NET 期末复习笔记

Application Development with.NET 期末复习笔记

  • 62 次阅读
  • 3 次下载
  • 2025/12/9 17:00:36

Collection ArrayList

Implements IList

Description

Like an array but shrinks or grows as dataadded

HashTable Queue Stack SortedList 3. ArrayList

IDictionary ICollection ICollection IDictionary

An unordered collection of key/value pairsFirst in, first out collection Last in, first out collection A sorted list of key/value pairs

a. Implements Ilist, ICollection and IEnumerable

Week 9

1. Delegates

Week 10

1. LINQ: Language Integrated Query

Week 11

1. Reflection

Allow programs to add functionality while executing

2. Is and as ? Is

? allows you to ask if an expression is of a particular type. ? Result is a Boolean

? As

? allows you to cast one type as another. If successful it returns the type. If not it returns null-- no exception.

3. Attribute

An attribute is a special kind of class for storing information about program constructs

? You apply the attributes to program constructs in the source code. ? The compiler takes the source code and produces metadata from the attributes and places that in the assembly. ? The metadata can be accessed by other programs.

? You apply the attribute by placing it immediately before the program construct.

? An attribute consists of square brackets [ ] enclosing an attribute name and sometimes a parameter list. [ Serializable ] public class MyClass { . . .

[ MyAttribute(“Simple class”, “Version 3.57”) ] public AnotherClass { . . .

4. obsolete attribute

? allows you to mark a program section as obsolete and display a warning message when the code is compiled. class Program {

[Obsolete(“Use method FooTwo”)] static public void Foo(string str) { // . . . }

static public void FooTwo(string str) { // . . . }

static void Main {

Foo(“In main”) } }

? This code will compile and run but, it will generate the following compiler error

?AttrObs.Program.Foo(string)? is obsolete: ?Use method FooTwo?

? You can add a flag to the attribute which says to generate a compiler error rather than a warning

[Obsolete(“Use FooTwo”, true)]

5. Conditional attribute

allows you to include or not include any calls of a particular method.

6. Nullable d =3.3 ? double? d=3.3

7. Whenever the relational operators are applied to nullable the result is always false if one or both of the items is a nullable equal to null. Nullable Logic: X true false null null null

? Note: If a nullable is equal to null then applying the ! operator returns null.

int? x = null; if (!x == null) // true

Y null null true false null

X | Y true null true null null

X & Y null false null false null

Week 12

1. WPF - Windows Presentation Foundation

2. XAML -eXtensible Application Markup language

3. Graphic Devices and Vector Graphics?

? There are a huge number of display devices out in the market, each with varying capabilities.

? WPF exploits whatever graphics processing unit (GPU) is available on a system to offload as much work as possible to it.

? To take advantage of all these capabilities, WPF relies entirely on vector graphics, rather than bit mapped graphics, allowing images and interface

搜索更多关于: Application Development with.N 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

Collection ArrayList Implements IList Description Like an array but shrinks or grows as dataadded HashTable Queue Stack SortedList 3. ArrayList IDictionary ICollection ICollection IDictionary An unordered collection of key/value pairsFirst in, first out collection Last in, first out collection A sorted list of key/value pairs a. Implemen

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com