Book description
C# in a Nutshell provides C# programmers with a concise and thorough reference to the language in one straightforward and accessible volume. Designed as a handbook for daily use, this book is an essential guide to the C# language and the base class APIs of the .NET Framework. Programmers will want to keep this book next to their keyboards for years to come. The heart of the book is a succinct but detailed reference to the C# language and the .NET types most essential to C# programmers. Each chapter in the API reference begins with an overview of a .NET namespace and a diagram of its types, including a quick-reference entry for each type, with name, assembly, category, description, member availability, class hierarchy, and other relevant information, such as whether the type is part o the ECMA CLI specification. Newly updated for .NET Framework version 1.1, the second edition also adds a CD that allows you to integrate the book's API Quick Reference directly into the help files of Visual Studio .NET 2002 & 2003, giving you direct access to this valuable information via your computer. In addition to the API reference section, this book includes:
An accelerated introduction to the C# language and the .NET Common Language Runtime
A tutorial section on using C# with the core classes of the .NET Framework Class Library to perform common tasks such as manipulating strings, I/O, and interacting with legacy components
Comprehensive language and tool reference chapters, including a C# syntax summary, a list of XML documentation tags, and a guide to command-line tools that ship with Visual Studio .NET and the .NET Framework
Appendixes with reference tables for regular expression syntax, format specifiers, a C# keyword glossary, namespace/assembly cross-reference, and a type and member index for determining in which type a method or field is defined.
Every once in a while, a book becomes the de-facto standard for a technology, operating system, or programming language--which is exactly what C# in a Nutshell has done in a single straightforward and easy to use volume. There is no more complete, up-to-date reference to the C# Language available.
Table of contents
-
C# in a Nutshell, 2nd Edition
- Preface
-
I. Programming with C#
- 1. Introducing C# and the .NET Framework
- 2. C# Language Basics
-
3. Creating Types in C#
- Classes
- Inheritance
- Access Modifiers
- Structs
- Interfaces
- Enums
- 4. Advanced C# Features
-
II. Programming with the .NET Framework
-
5. Framework Class Library Overview
- Core Types
- Text
- Collections
- Streams and I/O
- Networking
- Threading
- Security
- Reflection and Metadata
- Assemblies
- Serialization
- Remoting
- Web Services
- Data Access
- XML
- Graphics
- Rich Client Applications
- Web-Based Applications
- Globalization
- Configuration
- Advanced Component Services
- Diagnostics and Debugging
- Interoperating with Unmanaged Code
- Compiler and Tool Support
- Runtime Facilities
- Native OS Facilities
- Undocumented Types
- 6. String Handling
- 7. Collections
- 8. XML I/O
- 9. Networking
- 10. Streams and I/O
- 11. Serialization
- 12. Assemblies
- 13. Reflection
- 14. Custom Attributes
- 15. Memory Management
- 16. Threading
- 17. Integrating with Native DLLs
- 18. Integrating with COM Components
- 19. Diagnostics
- 20. C# Language Reference
-
5. Framework Class Library Overview
- III. Language and Tools Reference
-
IV. API Quick Reference
- 24. How to Use This Quick Reference
-
25. The Microsoft.Win32 Namespace
- PowerModeChangedEventArgs
- PowerModeChangedEventHandler
- PowerModes
- Registry
- RegistryHive
- RegistryKey
- SessionEndedEventArgs
- SessionEndedEventHandler
- SessionEndingEventArgs
- SessionEndingEventHandler
- SessionEndReasons
- SystemEvents
- TimerElapsedEventArgs
- TimerElapsedEventHandler
- UserPreferenceCategory
- UserPreferenceChangedEventArgs
- UserPreferenceChangedEventHandler
- UserPreferenceChangingEventArgs
- UserPreferenceChangingEventHandler
-
26. System
- Activator
- AppDomain
- AppDomainSetup
- AppDomainUnloadedException
- ApplicationException
- ArgIterator
- ArgumentException
- ArgumentNullException
- ArgumentOutOfRangeException
- ArithmeticException
- Array
- ArrayTypeMismatchException
- AssemblyLoadEventArgs
- AssemblyLoadEventHandler
- AsyncCallback
- Attribute
- AttributeTargets
- AttributeUsageAttribute
- BadImageFormatException
- BitConverter
- Boolean
- Buffer
- Byte
- CannotUnloadAppDomainException
- Char
- CharEnumerator
- CLSCompliantAttribute
- Console
- ContextBoundObject
- ContextMarshalException
- ContextStaticAttribute
- Convert
- CrossAppDomainDelegate
- DateTime
- DayOfWeek
- DBNull
- Decimal
- Delegate
- DivideByZeroException
- DllNotFoundException
- Double
- DuplicateWaitObjectException
- EntryPointNotFoundException
- Enum
- Environment
- Environment.SpecialFolder
- EventArgs
- EventHandler
- Exception
- ExecutionEngineException
- FieldAccessException
- FlagsAttribute
- FormatException
- GC
- Guid
- IAsyncResult
- ICloneable
- IComparable
- IConvertible
- ICustomFormatter
- IDisposable
- IFormatProvider
- IFormattable
- IndexOutOfRangeException
- Int16
- Int32
- Int64
- IntPtr
- InvalidCastException
- InvalidOperationException
- InvalidProgramException
- IServiceProvider
- LoaderOptimization
- LoaderOptimizationAttribute
- LocalDataStoreSlot
- MarshalByRefObject
- Math
- MemberAccessException
- MethodAccessException
- MissingFieldException
- MissingMemberException
- MissingMethodException
- MTAThreadAttribute
- MulticastDelegate
- MulticastNotSupportedException
- NonSerializedAttribute
- NotFiniteNumberException
- NotImplementedException
- NotSupportedException
- NullReferenceException
- Object
- ObjectDisposedException
- ObsoleteAttribute
- OperatingSystem
- OutOfMemoryException
- OverflowException
- ParamArrayAttribute
- PlatformID
- PlatformNotSupportedException
- Random
- RankException
- ResolveEventArgs
- ResolveEventHandler
- RuntimeTypeHandle
- SByte
- SerializableAttribute
- Single
- StackOverflowException
- STAThreadAttribute
- String
- SystemException
- ThreadStaticAttribute
- TimeSpan
- TimeZone
- Type
- TypeCode
- TypeInitializationException
- TypeLoadException
- TypeUnloadedException
- UInt16
- UInt32
- UInt64
- UIntPtr
- UnauthorizedAccessException
- UnhandledExceptionEventArgs
- UnhandledExceptionEventHandler
- Uri
- UriBuilder
- UriFormatException
- UriHostNameType
- UriPartial
- ValueType
- Version
- Void
- WeakReference
- 27. System.Collections
- 28. System.Collections.Specialized
-
29. System.Diagnostics
- BooleanSwitch
- ConditionalAttribute
- CounterCreationData
- CounterCreationDataCollection
- CounterSample
- CounterSampleCalculator
- Debug
- DebuggableAttribute
- Debugger
- DebuggerHiddenAttribute
- DebuggerStepThroughAttribute
- DefaultTraceListener
- EntryWrittenEventArgs
- EntryWrittenEventHandler
- EventLog
- EventLogEntry
- EventLogEntryCollection
- EventLogEntryType
- EventLogInstaller
- EventLogPermission
- EventLogPermissionAccess
- EventLogPermissionAttribute
- EventLogPermissionEntry
- EventLogPermissionEntryCollection
- EventLogTraceListener
- FileVersionInfo
- InstanceData
- InstanceDataCollection
- InstanceDataCollectionCollection
- MonitoringDescriptionAttribute
- PerformanceCounter
- PerformanceCounterCategory
- PerformanceCounterInstaller
- PerformanceCounterPermission
- PerformanceCounterPermissionAccess
- PerformanceCounterPermissionAttribute
- PerformanceCounterPermissionEntry
- PerformanceCounterPermissionEntryCollection
- PerformanceCounterType
- Process
- ProcessModule
- ProcessModuleCollection
- ProcessPriorityClass
- ProcessStartInfo
- ProcessThread
- ProcessThreadCollection
- ProcessWindowStyle
- StackFrame
- StackTrace
- Switch
- TextWriterTraceListener
- ThreadPriorityLevel
- ThreadState
- ThreadWaitReason
- Trace
- TraceLevel
- TraceListener
- TraceListenerCollection
- TraceSwitch
-
30. System.Globalization
- Calendar
- CalendarWeekRule
- CompareInfo
- CompareOptions
- CultureInfo
- CultureTypes
- DateTimeFormatInfo
- DateTimeStyles
- DaylightTime
- GregorianCalendar
- GregorianCalendarTypes
- HebrewCalendar
- HijriCalendar
- JapaneseCalendar
- JulianCalendar
- KoreanCalendar
- NumberFormatInfo
- NumberStyles
- RegionInfo
- SortKey
- StringInfo
- TaiwanCalendar
- TextElementEnumerator
- TextInfo
- ThaiBuddhistCalendar
- UnicodeCategory
-
31. System.IO
- BinaryReader
- BinaryWriter
- BufferedStream
- Directory
- DirectoryInfo
- DirectoryNotFoundException
- EndOfStreamException
- ErrorEventArgs
- ErrorEventHandler
- File
- FileAccess
- FileAttributes
- FileInfo
- FileLoadException
- FileMode
- FileNotFoundException
- FileShare
- FileStream
- FileSystemEventArgs
- FileSystemEventHandler
- FileSystemInfo
- FileSystemWatcher
- InternalBufferOverflowException
- IODescriptionAttribute
- IOException
- MemoryStream
- NotifyFilters
- Path
- PathTooLongException
- RenamedEventArgs
- RenamedEventHandler
- SeekOrigin
- Stream
- StreamReader
- StreamWriter
- StringReader
- StringWriter
- TextReader
- TextWriter
- WaitForChangedResult
- WatcherChangeTypes
- 32. System.IO.IsolatedStorage
-
33. System.Net
- AuthenticationManager
- Authorization
- Cookie
- CookieCollection
- CookieContainer
- CookieException
- CredentialCache
- Dns
- DnsPermission
- DnsPermissionAttribute
- EndPoint
- EndpointPermission
- FileWebRequest
- FileWebResponse
- GlobalProxySelection
- HttpContinueDelegate
- HttpStatusCode
- HttpVersion
- HttpWebRequest
- HttpWebResponse
- IAuthenticationModule
- ICertificatePolicy
- ICredentials
- IPAddress
- IPEndPoint
- IPHostEntry
- IWebProxy
- IWebRequestCreate
- NetworkAccess
- NetworkCredential
- ProtocolViolationException
- SecurityProtocolType
- ServicePoint
- ServicePointManager
- SocketAddress
- SocketPermission
- SocketPermissionAttribute
- TransportType
- WebClient
- WebException
- WebExceptionStatus
- WebHeaderCollection
- WebPermission
- WebPermissionAttribute
- WebProxy
- WebRequest
- WebResponse
- 34. System.Net.Sockets
-
35. System.Reflection
- AmbiguousMatchException
- Assembly
- AssemblyAlgorithmIdAttribute
- AssemblyCompanyAttribute
- AssemblyConfigurationAttribute
- AssemblyCopyrightAttribute
- AssemblyCultureAttribute
- AssemblyDefaultAliasAttribute
- AssemblyDelaySignAttribute
- AssemblyDescriptionAttribute
- AssemblyFileVersionAttribute
- AssemblyFlagsAttribute
- AssemblyInformationalVersionAttribute
- AssemblyKeyFileAttribute
- AssemblyKeyNameAttribute
- AssemblyName
- AssemblyNameFlags
- AssemblyNameProxy
- AssemblyProductAttribute
- AssemblyTitleAttribute
- AssemblyTrademarkAttribute
- AssemblyVersionAttribute
- Binder
- BindingFlags
- CallingConventions
- ConstructorInfo
- CustomAttributeFormatException
- DefaultMemberAttribute
- EventAttributes
- EventInfo
- FieldAttributes
- FieldInfo
- ICustomAttributeProvider
- InterfaceMapping
- InvalidFilterCriteriaException
- IReflect
- ManifestResourceInfo
- MemberFilter
- MemberInfo
- MemberTypes
- MethodAttributes
- MethodBase
- MethodImplAttributes
- MethodInfo
- Missing
- Module
- ModuleResolveEventHandler
- ParameterAttributes
- ParameterInfo
- ParameterModifier
- Pointer
- PropertyAttributes
- PropertyInfo
- ReflectionTypeLoadException
- ResourceAttributes
- ResourceLocation
- StrongNameKeyPair
- TargetException
- TargetInvocationException
- TargetParameterCountException
- TypeAttributes
- TypeDelegator
- TypeFilter
-
36. System.Reflection.Emit
- AssemblyBuilder
- AssemblyBuilderAccess
- ConstructorBuilder
- CustomAttributeBuilder
- EnumBuilder
- EventBuilder
- EventToken
- FieldBuilder
- FieldToken
- FlowControl
- ILGenerator
- Label
- LocalBuilder
- MethodBuilder
- MethodRental
- MethodToken
- ModuleBuilder
- OpCode
- OpCodes
- OpCodeType
- OperandType
- PackingSize
- ParameterBuilder
- ParameterToken
- PEFileKinds
- PropertyBuilder
- PropertyToken
- SignatureHelper
- SignatureToken
- StackBehaviour
- StringToken
- TypeBuilder
- TypeToken
- UnmanagedMarshal
-
37. System.Runtime.InteropServices
- ArrayWithOffset
- AssemblyRegistrationFlags
- BestFitMappingAttribute
- CallingConvention
- CharSet
- ClassInterfaceAttribute
- ClassInterfaceType
- CoClassAttribute
- ComAliasNameAttribute
- ComCompatibleVersionAttribute
- ComConversionLossAttribute
- COMException
- ComImportAttribute
- ComInterfaceType
- ComMemberType
- ComRegisterFunctionAttribute
- ComSourceInterfacesAttribute
- ComUnregisterFunctionAttribute
- ComVisibleAttribute
- CurrencyWrapper
- DispatchWrapper
- DispIdAttribute
- DllImportAttribute
- ErrorWrapper
- ExtensibleClassFactory
- ExternalException
- FieldOffsetAttribute
- GCHandle
- GCHandleType
- GuidAttribute
- HandleRef
- IDispatchImplAttribute
- IDispatchImplType
- InAttribute
- InterfaceTypeAttribute
- InvalidComObjectException
- InvalidOleVariantTypeException
- IRegistrationServices
- LayoutKind
- LCIDConversionAttribute
- Marshal
- MarshalAsAttribute
- MarshalDirectiveException
- ObjectCreationDelegate
- OptionalAttribute
- OutAttribute
- PreserveSigAttribute
- ProgIdAttribute
- RegistrationServices
- RuntimeEnvironment
- SafeArrayRankMismatchException
- SafeArrayTypeMismatchException
- SEHException
- StructLayoutAttribute
- TypeLibVersionAttribute
- UnknownWrapper
- UnmanagedType
- VarEnum
- IExpando
-
38. System.Runtime.Serialization
- Formatter
- FormatterConverter
- FormatterServices
- IDeserializationCallback
- IFormatter
- IFormatterConverter
- IObjectReference
- ISerializable
- ISerializationSurrogate
- ISurrogateSelector
- ObjectIDGenerator
- ObjectManager
- SerializationBinder
- SerializationEntry
- SerializationException
- SerializationInfo
- SerializationInfoEnumerator
- StreamingContext
- StreamingContextStates
- SurrogateSelector
- 39. System.Runtime.Serialization.Formatters
- 40. System.Text
- 41. System.Text.RegularExpressions
-
42. System.Threading
- ApartmentState
- AutoResetEvent
- Interlocked
- IOCompletionCallback
- LockCookie
- ManualResetEvent
- Monitor
- Mutex
- NativeOverlapped
- Overlapped
- ReaderWriterLock
- RegisteredWaitHandle
- SynchronizationLockException
- Thread
- ThreadAbortException
- ThreadExceptionEventArgs
- ThreadExceptionEventHandler
- ThreadInterruptedException
- ThreadPool
- ThreadPriority
- ThreadStart
- ThreadState
- ThreadStateException
- Timeout
- Timer
- TimerCallback
- WaitCallback
- WaitHandle
- WaitOrTimerCallback
- 43. System.Timers
-
44. System.Xml
- EntityHandling
- Formatting
- IHasXmlNode
- IXmlLineInfo
- NameTable
- ReadState
- ValidationType
- WhitespaceHandling
- WriteState
- XmlAttribute
- XmlAttributeCollection
- XmlCDataSection
- XmlCharacterData
- XmlComment
- XmlConvert
- XmlDataDocument
- XmlDeclaration
- XmlDocument
- XmlDocumentFragment
- XmlDocumentType
- XmlElement
- XmlEntity
- XmlEntityReference
- XmlException
- XmlImplementation
- XmlLinkedNode
- XmlNamedNodeMap
- XmlNamespaceManager
- XmlNameTable
- XmlNode
- XmlNodeChangedAction
- XmlNodeChangedEventArgs
- XmlNodeChangedEventHandler
- XmlNodeList
- XmlNodeOrder
- XmlNodeReader
- XmlNodeType
- XmlNotation
- XmlParserContext
- XmlProcessingInstruction
- XmlQualifiedName
- XmlReader
- XmlResolver
- XmlSecureResolver
- XmlSignificantWhitespace
- XmlSpace
- XmlText
- XmlTextReader
- XmlTextWriter
- XmlTokenizedType
- XmlUrlResolver
- XmlValidatingReader
- XmlWhitespace
- XmlWriter
- 45. System.Xml.XPath
- 46. System.Xml.Xsl
- V. Appendixes
- F. Type, Method, Property, Event, and Field Index
- Index
- Colophon
Product information
- Title: C# in a Nutshell, Second Edition
- Author(s):
- Release date: August 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596005269
You might also like
book
C# in a Nutshell
C# in a Nutshell provides everything programmers need to know about the C# language in one …
video
C# and .NET for Object-Oriented Programmers
How to use C# in conjunction with object-oriented design principles.
book
C# 7.0 in a Nutshell
When you have questions about C# 7.0 or the .NET CLR and its core Framework assemblies, …
book
C# 6.0 Cookbook, 4th Edition
Completely updated for C# 6.0, the new edition of this bestseller offers more than 150 code …