15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

functions – GetQuoteofTheDay()<br />

functions (continued)<br />

abstract, 93<br />

anonymous. See anonymous methods; Lambda<br />

expressions<br />

calling base versions of functions, 93<br />

methods v., 67<br />

pure virtual, 93<br />

g<br />

G (general format), 52, 213<br />

GAC (global assembly cache), 15, 446–447<br />

gacuil.exe, 446–447, 456, 457<br />

GameMoves, 145, 146<br />

garbage collection, 10–11, 311–312<br />

CLR <strong>and</strong>, 312<br />

freeing unmanaged resources <strong>and</strong>, 312–313<br />

memory management <strong>and</strong>, 303, 696<br />

GC class, 312, 317<br />

general format (G), 52, 213<br />

generation operators (query operator category), 276,<br />

288–289<br />

generic classes, 110–118, 225–226<br />

constraints, 114–116<br />

creating, 110–113<br />

default values, 114<br />

features, 113–118<br />

generic types <strong>and</strong>, 107<br />

inheritance <strong>and</strong>, 117<br />

keywords <strong>and</strong>, 113, 114<br />

static members of, 117–118<br />

generic collection classes, 108. See also collections<br />

DataGridView control <strong>and</strong>, 1134–1135<br />

IEnumerable‹T› <strong>and</strong>, 112, 125, 226<br />

non-generic collection classes <strong>and</strong>, 108,<br />

225, 732<br />

ObservableCollection‹T›. See ObservableCollection‹T›<br />

System.Collections.Generic <strong>and</strong>, 108, 109, 578<br />

XAML <strong>and</strong>, 732<br />

generic interfaces, 118–123<br />

contra-variance with, 118–123<br />

covariance with, 119–120<br />

generic methods, 123–128<br />

with constraints, 125–126<br />

with delegates, 126<br />

specialization, 126–128<br />

generic types<br />

generic classes <strong>and</strong>, 107<br />

naming guidelines for, 110<br />

null <strong>and</strong>, 113, 114<br />

GenericConsumer, 95, 96, 97, 98<br />

GenericMethods/Account.cs, 124, 125<br />

GenericMethods/Algorithm.cs, 125, 126<br />

GenericMethods/IAccount.cs, 125<br />

GenericMethods/Program.cs, 124, 126, 127<br />

GenericPrincipal, 546<br />

generics, 107–128<br />

binary code reuse <strong>and</strong>, 109<br />

casting <strong>and</strong>, 113<br />

code bloat <strong>and</strong>, 109–110<br />

default keyword <strong>and</strong>, 114<br />

naming guidelines, 110<br />

overview, 107–110<br />

performance <strong>and</strong>, 108<br />

type safety <strong>and</strong>, 107, 109<br />

XAML <strong>and</strong>, 728, 732, 744<br />

geometries (WPF), 988–989<br />

GeometryDemo/MainWindow.xaml, 988<br />

GeometryDrawing, 992<br />

GeometryGroup, 992<br />

Get(), 258<br />

$get(), 1234<br />

get accessor, 732, 733<br />

GetAccessControl(), 559, 560, 803, 804, 805, 810<br />

GetAssemblies(), 444<br />

GetAStringDemo/Currency.cs, 187<br />

GetAStringDemo/Program.cs, 185–186<br />

GetChampions(), 269, 278, 284<br />

GetChanges(), 856<br />

GetChildRows(), 839, 841<br />

GetConstructor(), GetConstructors(), 342<br />

GetConstructorChampions(), 270, 282<br />

GetCustomAttributes(), 345, 348<br />

GetCustomerOrdersCLR, 968<br />

GetDatabaseConnection.txt, 822, 827<br />

GetDefaultMembers(), 342<br />

GetDirectories(), 774, 778, 783<br />

GetDocument(), 114, 238, 245<br />

GetDrives(), 801<br />

GetEnumerator(), 110, 111, 112, 113, 118, 134, 140,<br />

141, 142, 143, 144, 226<br />

GetEvent(), GetEvents(), 342<br />

GetField(), GetFields(), 342<br />

GetFileNames(), 814<br />

GetFiles(), 774, 778, 783<br />

GetFileSystemInfo(), 774<br />

GetFormat(), 572<br />

GetHashCode(), 84, 147, 162, 170, 248, 249, 250,<br />

251, 284<br />

GetHostByAddress(), 655<br />

GetInvocationList(), 196, 201<br />

GetManifestResourceNames(), 581<br />

GetMember(), GetMembers(), 342<br />

GetMenusByName(), 890<br />

GetMethod(), GetMethods(), 342<br />

GetNextTextElement(), 570<br />

GetObjectByKey(), 873, 882<br />

GetParentRows(), 841, 842<br />

GetProperty(), GetProperties(), 342<br />

GetQuoteOfTheDay(), 447, 449<br />

1438<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!