Classes | Functions

CSharpUtilities Namespace Reference

Classes

class   ArrayProducer
  Contains static generic ToArray method for producing an Array from a collection. More...
class   ArrayProducerTest
class   DelegateCaller
  Convenient stand-in for the thread-safe delegate invocation idiom. More...
class   DelegateCallerTest
class   DesktopScreen
  This is an adpater of System.Windows.Forms.Screen, in order to get rid of System.Windows.Forms dependency for WPF dlls. More...
class   Enumerable
  Dummy Enumerable to serve as a wrapper around an Enumerator for easy use in a foreach loop. More...
class   EnumerableTest
class   ExtendedEnum
  Provides an extension of the typesafe enum idiom for complex types. More...
class   ExtendedEnumBase
  Base class used to identify the classes that derive from ExtendedEnum. More...
class   ExtenedeEnumBaseTest
class   TestSingleEnum
  Class that inherits from ExtendedEnum, used for testing purposes.
class   TestDoubleEnum
  Class that inherits from ExtendedEnum with 2 generic parameters.
class   ExtendedResourceManager
  This class extends standard ComponentResourceManager and adds the support to MultiIcon, Icon and Image resources. More...
class   ExtendedResourceManagerTest
class   ExtendedResourceManagerTestResources
  Empty class paired to ExtendedResourceManagerTestResources.resx to allow the resource manager instance in ExtendedResourceManagerTest to find the resources through a type.
class   ExternalExtendeEnumTest
class   ExternalBall
  Test Class which inherits from an ExtendedEnum with 2 generic parameters.
class   TestIntEnum
  Test Class which inherits from an ExtendedEnum with 2 generic parameters.
class   DuplicatedExternalBall
  Test Class which inherits from an ExtendedEnum with 2 generic parameters.
class   DerivedExternalBall
  Test Class which inherits from an ExtendedEnum with 2 generic parameters.
class   BallWithStaticConstructor
class   FileUtilities
  Class that contains useful file-related operations. More...
class   FileUtilitiesTest
class   IconDeviceIndependentBitmap
  A IconDeviceIndependentBitmap stores a device independent bitmap (DIB). More...
class   IconTools
  A utility class for converting Icon formats used in Windows Forms and WPF. More...
class   IconUtilities
  This utility class is used for manipulating icons. More...
class   IconUtilitiesTest
struct   KeyState
  A first-class object, bit masks and query functions for the DragEventArgs.KeyState and QueryContinueDragEventArgs.KeyState properties as defined in the msdn documentation. More...
class   MaxBindingOperations
  Collection of convenience methods for establishing data bindings in code. More...
class   MemoryMarker
  <exclude> More...
class   MultiIcon
  MultiIcon is a reader and container for icon resources. More...
struct   Pair
  Generic Pair structure, often useful for keeping ordered lists of associated objects. More...
class   PairList
  Ordered associative list. More...
class   RoutedKeyEventArgs
  Encapsulates arguments for KeyDown, KeyUp and KeyPress .NET events for events that may �bubble up� the source component's parent chain. More...
class   Set
  Collection of distinct objects. More...
class   SetTest
class   SimpleExtendedEnumTest
class   Ball
  Test Class which inherits from an ExtendedEnum with a single generic parameter.
class   BallNotYetReferenced
  Test Class which inherits from an ExtendedEnum with a single generic parameter.
class   DerivedBall
class   StringTrimmer
  A value converter that simply calls Trim() on a string value. More...
class   StringUtilities
  Useful general utilites for working with strings. More...
class   SynchronizingBackgroundWorker
  Replaces the standard BackgroundWorker provided by the .NET Framework to fix what seems to be a bug causing the BackgroundWorker to fire events in the wrong thread. More...
class   TestFileCollection
  Utility class helps unit tests find their data files, encapsulating the different search schemes required on dev machines and on automation machines.
class   UserInterfaceUtilities
  Contains static utility methods related to UI and drawing. More...
class   ValueChangedEventArgs
  EventArgs type indicating that a value has already changed from and old value to a new value. More...
class   ValueChangeEventArgsBase
  Abstract value change event args. More...
class   ValueChangingEventArgs
  EventArgs containing data for signalling that a data value will change value. More...
class   VariableGuard
  Encapsulates safely temporarily setting a variable value while some operation is performed. More...
class   WeakEvent
  Maintains a list of event handlers through weak references. More...
class   WeakEventHandler
  Serves instead of a standard event handler to avoid maintaining a strong reference to the handler target causing a possible memory leak. More...
class   WpfUtilities
  General utility methods for working with WPF. More...

Functions

delegate void  WriteMethod (Stream output)
  FileUtilities.SafeWrite passes control to this delegate to perform specific writing.
delegate void  XmlWriteMethod (XmlWriter output)
  FileUtilities.SafeWriteXml passes control to this delegate to perform specific writing.
delegate void  TextWriteMethod (StreamWriter output)
  FileUtilities.SafeWriteText passes control to this delegate to perform specific writing.

Function Documentation

delegate void CSharpUtilities::WriteMethod ( Stream  output )

FileUtilities.SafeWrite passes control to this delegate to perform specific writing.

Parameters:
output Open stream to which the delegate may write. Note that the delegate should close this stream or any enclosing writer (e.g. StreamWriter) object to ensure that the output is flushed.
delegate void CSharpUtilities::XmlWriteMethod ( XmlWriter  output )

FileUtilities.SafeWriteXml passes control to this delegate to perform specific writing.

Parameters:
output Open XmlWriter around an output stream.
delegate void CSharpUtilities::TextWriteMethod ( StreamWriter  output )

FileUtilities.SafeWriteText passes control to this delegate to perform specific writing.

Parameters:
output Open StreamWriter around an output stream.