S
S
Sample( ), 657
SByte .NET structure, 396, 397, 623
sbyte value type, 36, 37, 38, 396, 623
Scheme property, 833–834
Scopes, 52–54, 438, 457
sealed keyword, 305
Security, 8, 9
SecurityException, 372
Seek( ), 364, 365, 390–392, 393–394
SeekOrigin enumeration, 390
select clause, 548, 550, 556–559,
561, 569
using into with a, 563
Select( ) extension method, 574,
575–576
Selection statements, 85–92
Semaphore, 730, 734–737
named, 736–737
SemaphoreSecurity, 737
SerializationInfo, 352
Server property, 835
set accessor
and accessor modifiers, 261–264
and auto-implemented
properties, 259–260, 262–264
for indexer, 246, 249, 320
for property, 254–255, 256,
318–319
set contextual keyword, 33
Set( ), 737, 739, 772
SetAll( ), 772
SetByIndex( ), 764, 765
SetEquals( ), 798
SetError( ), 382
SetIn( ), 382
SetOut( ), 382–383
SetRange( ), 756, 757
SetValue( ), 646
Sheridan, Mike, 4
Shift operators, bitwise, 73, 79–81
short value type, 36, 37, 38, 396, 623
Show( ), 856–857
Sign flag, 37
Sign( ), 620
Signature of a method, 193
Simple types, 35
Sin( ), 40, 620
Single .NET structure, 396, 397,
623, 626
fields, table of, 628
methods, table of, 626–627
Sinh( ), 620
sizeof operator, 595
Sleep( ), 706, 746
Sort( ), 646, 647, 648, 756, 757,
760–761, 780–781
Sort( ), 646, 647
Sort( ), 647
SortedDictionary class, 779,
789–791
methods, table of some, 790
performance characteristics, 792
SortedDictionary
.KeyCollection class, 790
SortedDictionary
.ValueCollection class, 790
SortedList class, 755, 764–767
methods, table of common, 765
SortedList class, 779,
792–794
methods, table of some, 792–793
performance characteristics
of, 792
Split( ), 677–680
SQL (Structured Query Language),
545, 546, 581
Sqrt( ), 38–39, 206, 621
Stack
definition of, 13, 168, 767
memory region, 596
Stack class, 749, 755, 767–769
methods, table of, 767
Stack class, 779, 794–795
methods, table of, 795
stackalloc, 596
StackOverflowException, 353,
354, 596
www.freepdf-books.com
I n d e x
883
StackTrace property of Exception,
351–352
Start( ), 705, 747–748
parameterized version of, 713
StartsWith( ), 673, 677
Statements, 21, 31
empty, 98
Statements, control, 26
iteration, 85, 92–102
jump, 85, 102–107
selection, 85–92
STAThread attribute, 850, 851
static, 21, 205–212, 252, 294
Status property, 831
StatusCode property, 835
StatusDescription property, 835
Stream(s)
binary, 367
byte, 363, 372–378
character, 363, 364, 365, 367,
378–381
classes, byte, 365
definition of, 363
memory-based, 392–394
predefined, 363–364
redirecting standard, 364, 371,
381–383, 394
wrapper classes, character,
365–367
Stream class, 364–365, 372, 393
byte steam classes derived
from, 365
methods, table of common, 364
properties, table of, 365
StreamingContext, 352
StreamReader class, 367, 378,
380–381, 608
StreamWriter class, 367, 378–380, 382
string
alias for System.String, 159, 663
class.
See
String class
data type, 156, 617, 663, 664
String class, 156–163, 663–684
comparison methods, table of
common, 666–667
constructors, 664
indexer, 665
search methods, table of, 675–677
string handling methods, table
of common, 157
String(s)
arrays of, 160–161
comparing, 158, 665–670
concatenating, 159, 670–672
constructing, 156–157, 664–665
extension methods, 684
formatting.
See
Formatting
immutability of, 161–162, 663
indexing, 157
inserting, 682–683
I/O using, 394–395
joining, 677, 678
Length property of, 157, 665
literals, 48–49, 156, 665
numeric, converting, 396–398
as objects, 156, 663
padding, 681–682
pointers and, 593–594
relational operators and, 665
removing, 682–683
replacing, 682–683
searching, 672–677
splitting, 677–680
switch statements and, 162–163
tokenizing, 679–680
trimming, 681–682
String.Format( ).
See
Format( )
StringBuilder class, 162, 395, 663
StringCollection class, 774
StringComparison enumeration,
669–670
StringDictionary class, 774
StringReader class, 367, 394–395
StringSplitOptions enumeration, 679
StringWriter class, 367, 394, 395
Stroustrup, Bjarne, 4, 5
struct keyword, 326, 504, 517, 519, 521
Structures, 36, 311, 326–331
C# vs. C++, 331
corresponding to the built-in
value types, .NET, 396–397,
623–641
default value of, 522
efficiency of, 326, 330–331
and fixed-size buffers, 596–598
generic, 523–524
partial, 603
using pointers with, 589
System, list of, 616
Subclass, 275
Substring( ), 161–162, 562, 684
Subtract( ), 633
Sum( ) extension method, 578–579
Sun Microsystems, 4
Superclass, 275
SuppressFinalize( ), 658
Suspend( ), 745
switch statement, 85, 88–92
enumerations and, 89, 332, 335
goto and, 106–107
and no fall-through rule,
91–92, 107
and strings, 89, 162–163
Symbol, #define directive, 452
SymmetricExceptWith( ), 798
Synchronization, 704, 717–723
deadlock, 727, 745
interprocess, 733, 737
using an event synchronization
object, 737–739
using the Interlocked class,
739–740
using a lock statement, 718–722,
723, 729
using the MethodImplAttribute
attribute, 728–729
using Monitor methods, 723–727
using a mutex, 730–733
and race conditions, 727
using a semaphore, 730, 734–737
SynchronizationLockException, 724
Synchronized( ), 756, 757, 763, 764,
765, 767, 770, 772
SynchronizedCollection class, 779
SynchronizedKeyCollection
class, 779
SynchronizedReadOnlyCollection
class, 779
Synchronous vs. asynchronous
Internet communication, 824
SyncRoot property, 642, 751, 772
Syntax errors, 22
System namespace, 20, 337, 352, 353,
363, 364, 396, 437, 581, 613, 615,
664, 833, 850
members, lists of, 615–617
System.Attribute, 483
System.AttributeUsageAttribute
class, 491
System.Collections namespace, 641,
750, 755, 774
Do'stlaringiz bilan baham: |