[Mono-list] mono System.dll - Microsoft.CSharp
Fabricio Igor P. A. do Nascimento
fabricio.igor@buildersolutions.net
Mon, 17 May 2004 11:56:00 -0300 (BRT)
------=_20040517115600_58926
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hi, here´s sourcer code of the System.dll
System
+ SR.cs
Microsoft.CSharp
+ CSharpMemberAttributeConverter.cs
^ CSharpCodeProvider.cs - GetConverter( Type Type )
Legend
+ Insert
^ Update
--
Fabricio Igor P. A. do Nascimento
Consultor - Builder Solutions
www.buildersolutions.net
------=_20040517115600_58926
Content-Type: text/plain; name="SR.cs"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="SR.cs"
//
// Microsoft.CSharp SR Class implementation
//
// Author:
// Fabricio Igor P. A. do Nascimento (fabricio.igor@buildersolutions.net)
//
//
//
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Threading;
namespace System
{
sealed class SR
{
internal const string DebugLaunchFailed = "DebugLaunchFailed";
internal const string DebugLaunchFailedTitle = "DebugLaunchFailedTitle";
internal const string DebugAssertTitle = "DebugAssertTitle";
internal const string DebugAssertBanner = "DebugAssertBanner";
internal const string DebugAssertShortMessage = "DebugAssertShortMessage";
internal const string DebugAssertLongMessage = "DebugAssertLongMessage";
internal const string ObjectDisposed = "ObjectDisposed";
internal const string NotSupported = "NotSupported";
internal const string ExceptionOccurred = "ExceptionOccurred";
internal const string ToStringNull = "ToStringNull";
internal const string EnumConverterInvalidValue = "EnumConverterInvalidValue";
internal const string ConvertFromException = "ConvertFromException";
internal const string ConvertToException = "ConvertToException";
internal const string ConvertInvalidPrimitive = "ConvertInvalidPrimitive";
internal const string ErrorMissingPropertyAccessors = "ErrorMissingPropertyAccessors";
internal const string ErrorInvalidPropertyType = "ErrorInvalidPropertyType";
internal const string ErrorMissingEventAccessors = "ErrorMissingEventAccessors";
internal const string ErrorInvalidEventHandler = "ErrorInvalidEventHandler";
internal const string ErrorInvalidEventType = "ErrorInvalidEventType";
internal const string InvalidMemberName = "InvalidMemberName";
internal const string ErrorBadExtenderType = "ErrorBadExtenderType";
internal const string ErrorCreateSystemEvents = "ErrorCreateSystemEvents";
internal const string ErrorCreateTimer = "ErrorCreateTimer";
internal const string ErrorKillTimer = "ErrorKillTimer";
internal const string ErrorSystemEventsNotSupported = "ErrorSystemEventsNotSupported";
internal const string ErrorGetTempPath = "ErrorGetTempPath";
internal const string CHECKOUTCanceled = "CHECKOUTCanceled";
internal const string ErrorInvalidServiceInstance = "ErrorInvalidServiceInstance";
internal const string ErrorServiceExists = "ErrorServiceExists";
internal const string ArgumentNull_Key = "ArgumentNull_Key";
internal const string Argument_AddingDuplicate = "Argument_AddingDuplicate";
internal const string ArgumentOutOfRange_NeedNonNegNum = "ArgumentOutOfRange_NeedNonNegNum";
internal const string InvalidOperation_EnumFailedVersion = "InvalidOperation_EnumFailedVersion";
internal const string InvalidOperation_EnumOpCantHappen = "InvalidOperation_EnumOpCantHappen";
internal const string InvalidPrimitiveType = "InvalidPrimitiveType";
internal const string CodeGenOutputWriter = "CodeGenOutputWriter";
internal const string InvalidLanguageIdentifier = "InvalidLanguageIdentifier";
internal const string InvalidTypeName = "InvalidTypeName";
internal const string MetaExtenderName = "MetaExtenderName";
internal const string InvalidEnumArgument = "InvalidEnumArgument";
internal const string InvalidNullArgument = "InvalidNullArgument";
internal const string InvalidNullEmptyArgument = "InvalidNullEmptyArgument";
internal const string LicExceptionTypeOnly = "LicExceptionTypeOnly";
internal const string LicExceptionTypeAndInstance = "LicExceptionTypeAndInstance";
internal const string LicMgrContextCannotBeChanged = "LicMgrContextCannotBeChanged";
internal const string LicMgrAlreadyLocked = "LicMgrAlreadyLocked";
internal const string LicMgrDifferentUser = "LicMgrDifferentUser";
internal const string InvalidElementType = "InvalidElementType";
internal const string InvalidIdentifier = "InvalidIdentifier";
internal const string ExecFailedToCreate = "ExecFailedToCreate";
internal const string ExecTimeout = "ExecTimeout";
internal const string ExecBadreturn = "ExecBadreturn";
internal const string ExecCantGetRetCode = "ExecCantGetRetCode";
internal const string ExecCantExec = "ExecCantExec";
internal const string ExecCantRevert = "ExecCantRevert";
internal const string CompilerNotFound = "CompilerNotFound";
internal const string DuplicateFileName = "DuplicateFileName";
internal const string CollectionReadOnly = "CollectionReadOnly";
internal const string BitVectorFull = "BitVectorFull";
internal const string ArrayConverterText = "ArrayConverterText";
internal const string CollectionConverterText = "CollectionConverterText";
internal const string CultureInfoConverterDefaultCultureString = "CultureInfoConverterDefaultCultureString";
internal const string CultureInfoConverterInvalidCulture = "CultureInfoConverterInvalidCulture";
internal const string InvalidPrimitive = "InvalidPrimitive";
internal const string TimerInvalidInterval = "TimerInvalidInterval";
internal const string TraceSwitchLevelTooHigh = "TraceSwitchLevelTooHigh";
internal const string TraceSwitchLevelTooLow = "TraceSwitchLevelTooLow";
internal const string TraceSwitchInvalidLevel = "TraceSwitchInvalidLevel";
internal const string TraceListenerIndentSize = "TraceListenerIndentSize";
internal const string TraceListenerFail = "TraceListenerFail";
internal const string DuplicateComponentName = "DuplicateComponentName";
internal const string NotImplemented = "NotImplemented";
internal const string OutOfMemory = "OutOfMemory";
internal const string EOF = "EOF";
internal const string IOError = "IOError";
internal const string BadChar = "BadChar";
internal const string toStringNone = "toStringNone";
internal const string toStringUnknown = "toStringUnknown";
internal const string InvalidEnum = "InvalidEnum";
internal const string IndexOutOfRange = "IndexOutOfRange";
internal const string ErrorPropertyAccessorException = "ErrorPropertyAccessorException";
internal const string InvalidOperation = "InvalidOperation";
internal const string EmptyStack = "EmptyStack";
internal const string PCCategoryName = "PCCategoryName";
internal const string PCCounterName = "PCCounterName";
internal const string PCInstanceName = "PCInstanceName";
internal const string PCMachineName = "PCMachineName";
internal const string PropertyCategoryAction = "PropertyCategoryAction";
internal const string PropertyCategoryAppearance = "PropertyCategoryAppearance";
internal const string PropertyCategoryBehavior = "PropertyCategoryBehavior";
internal const string PropertyCategoryData = "PropertyCategoryData";
internal const string PropertyCategoryDDE = "PropertyCategoryDDE";
internal const string PropertyCategoryDesign = "PropertyCategoryDesign";
internal const string PropertyCategoryDragDrop = "PropertyCategoryDragDrop";
internal const string PropertyCategoryFocus = "PropertyCategoryFocus";
internal const string PropertyCategoryFont = "PropertyCategoryFont";
internal const string PropertyCategoryFormat = "PropertyCategoryFormat";
internal const string PropertyCategoryKey = "PropertyCategoryKey";
internal const string PropertyCategoryList = "PropertyCategoryList";
internal const string PropertyCategoryLayout = "PropertyCategoryLayout";
internal const string PropertyCategoryDefault = "PropertyCategoryDefault";
internal const string PropertyCategoryMouse = "PropertyCategoryMouse";
internal const string PropertyCategoryPosition = "PropertyCategoryPosition";
internal const string PropertyCategoryText = "PropertyCategoryText";
internal const string PropertyCategoryScale = "PropertyCategoryScale";
internal const string PropertyCategoryWindowStyle = "PropertyCategoryWindowStyle";
internal const string PropertyCategoryConfig = "PropertyCategoryConfig";
internal const string OnlyAllowedOnce = "OnlyAllowedOnce";
internal const string BeginIndexNotNegative = "BeginIndexNotNegative";
internal const string LengthNotNegative = "LengthNotNegative";
internal const string UnimplementedState = "UnimplementedState";
internal const string UnexpectedOpcode = "UnexpectedOpcode";
internal const string NoResultOnFailed = "NoResultOnFailed";
internal const string UnterminatedBracket = "UnterminatedBracket";
internal const string TooManyParens = "TooManyParens";
internal const string NestedQuantify = "NestedQuantify";
internal const string QuantifyAfterNothing = "QuantifyAfterNothing";
internal const string InternalError = "InternalError";
internal const string IllegalRange = "IllegalRange";
internal const string NotEnoughParens = "NotEnoughParens";
internal const string BadClassInCharRange = "BadClassInCharRange";
internal const string ReversedCharRange = "ReversedCharRange";
internal const string UndefinedReference = "UndefinedReference";
internal const string MalformedReference = "MalformedReference";
internal const string UnrecognizedGrouping = "UnrecognizedGrouping";
internal const string UnterminatedComment = "UnterminatedComment";
internal const string IllegalEndEscape = "IllegalEndEscape";
internal const string MalformedNameRef = "MalformedNameRef";
internal const string UndefinedBackref = "UndefinedBackref";
internal const string UndefinedNameRef = "UndefinedNameRef";
internal const string TooFewHex = "TooFewHex";
internal const string MissingControl = "MissingControl";
internal const string UnrecognizedControl = "UnrecognizedControl";
internal const string UnrecognizedEscape = "UnrecognizedEscape";
internal const string IllegalCondition = "IllegalCondition";
internal const string TooManyAlternates = "TooManyAlternates";
internal const string MakeException = "MakeException";
internal const string IncompleteSlashP = "IncompleteSlashP";
internal const string MalformedSlashP = "MalformedSlashP";
internal const string InvalidGroupName = "InvalidGroupName";
internal const string CapnumNotZero = "CapnumNotZero";
internal const string AlternationCantCapture = "AlternationCantCapture";
internal const string AlternationCantHaveComment = "AlternationCantHaveComment";
internal const string UnknownProperty = "UnknownProperty";
internal const string ReplacementError = "ReplacementError";
internal const string CountTooSmall = "CountTooSmall";
internal const string EnumNotStarted = "EnumNotStarted";
internal const string net_baddate = "net_baddate";
internal const string net_writestarted = "net_writestarted";
internal const string net_clsmall = "net_clsmall";
internal const string net_reqsubmitted = "net_reqsubmitted";
internal const string net_resubmitcanceled = "net_resubmitcanceled";
internal const string net_redirect_perm = "net_redirect_perm";
internal const string net_resubmitprotofailed = "net_resubmitprotofailed";
internal const string net_needchunked = "net_needchunked";
internal const string net_nochunked = "net_nochunked";
internal const string net_nochunkuploadonhttp10 = "net_nochunkuploadonhttp10";
internal const string net_connarg = "net_connarg";
internal const string net_no100 = "net_no100";
internal const string net_fromto = "net_fromto";
internal const string net_rangetoosmall = "net_rangetoosmall";
internal const string net_entitytoobig = "net_entitytoobig";
internal const string net_invalidversion = "net_invalidversion";
internal const string net_invalidstatus = "net_invalidstatus";
internal const string net_toosmall = "net_toosmall";
internal const string net_toolong = "net_toolong";
internal const string net_connclosed = "net_connclosed";
internal const string net_headerrestrict = "net_headerrestrict";
internal const string net_noseek = "net_noseek";
internal const string net_servererror = "net_servererror";
internal const string net_nouploadonget = "net_nouploadonget";
internal const string net_invasync = "net_invasync";
internal const string net_repcall = "net_repcall";
internal const string net_wrongversion = "net_wrongversion";
internal const string net_badmethod = "net_badmethod";
internal const string net_io_notenoughbyteswritten = "net_io_notenoughbyteswritten";
internal const string net_requestaborted = "net_requestaborted";
internal const string net_mustwrite = "net_mustwrite";
internal const string net_tooManyRedirections = "net_tooManyRedirections";
internal const string net_authmodulenotregistered = "net_authmodulenotregistered";
internal const string net_authschemenotregistered = "net_authschemenotregistered";
internal const string net_proxyschemenotsupported = "net_proxyschemenotsupported";
internal const string net_maxsrvpoints = "net_maxsrvpoints";
internal const string net_unknown_prefix = "net_unknown_prefix";
internal const string net_notconnected = "net_notconnected";
internal const string net_notstream = "net_notstream";
internal const string net_timeout = "net_timeout";
internal const string net_nocontentlengthonget = "net_nocontentlengthonget";
internal const string net_contentlengthmissing = "net_contentlengthmissing";
internal const string net_nullproxynotallowed = "net_nullproxynotallowed";
internal const string net_nonhttpproxynotallowed = "net_nonhttpproxynotallowed";
internal const string net_nottoken = "net_nottoken";
internal const string net_rangetype = "net_rangetype";
internal const string net_need_writebuffering = "net_need_writebuffering";
internal const string net_securitypackagesupport = "net_securitypackagesupport";
internal const string net_nodefaultcreds = "net_nodefaultcreds";
internal const string net_stopped = "net_stopped";
internal const string net_udpconnected = "net_udpconnected";
internal const string net_readonlystream = "net_readonlystream";
internal const string net_writeonlystream = "net_writeonlystream";
internal const string net_no_concurrent_io_allowed = "net_no_concurrent_io_allowed";
internal const string net_needmorethreads = "net_needmorethreads";
internal const string net_MethodNotImplementedException = "net_MethodNotImplementedException";
internal const string net_PropertyNotImplementedException = "net_PropertyNotImplementedException";
internal const string net_MethodNotSupportedException = "net_MethodNotSupportedException";
internal const string net_PropertyNotSupportedException = "net_PropertyNotSupportedException";
internal const string net_ProtocolNotSupportedException = "net_ProtocolNotSupportedException";
internal const string net_HashAlgorithmNotSupportedException = "net_HashAlgorithmNotSupportedException";
internal const string net_QOPNotSupportedException = "net_QOPNotSupportedException";
internal const string net_SelectModeNotSupportedException = "net_SelectModeNotSupportedException";
internal const string net_InvalidSocketHandle = "net_InvalidSocketHandle";
internal const string net_InvalidAddressFamily = "net_InvalidAddressFamily";
internal const string net_InvalidSocketAddressSize = "net_InvalidSocketAddressSize";
internal const string net_sockets_blocking = "net_sockets_blocking";
internal const string net_sockets_useblocking = "net_sockets_useblocking";
internal const string net_sockets_select = "net_sockets_select";
internal const string net_sockets_empty_select = "net_sockets_empty_select";
internal const string net_sockets_mustbind = "net_sockets_mustbind";
internal const string net_webstatus_Success = "net_webstatus_Success";
internal const string net_webstatus_NameResolutionFailure = "net_webstatus_NameResolutionFailure";
internal const string net_webstatus_ConnectFailure = "net_webstatus_ConnectFailure";
internal const string net_webstatus_ReceiveFailure = "net_webstatus_ReceiveFailure";
internal const string net_webstatus_SendFailure = "net_webstatus_SendFailure";
internal const string net_webstatus_PipelineFailure = "net_webstatus_PipelineFailure";
internal const string net_webstatus_RequestCanceled = "net_webstatus_RequestCanceled";
internal const string net_webstatus_ConnectionClosed = "net_webstatus_ConnectionClosed";
internal const string net_webstatus_TrustFailure = "net_webstatus_TrustFailure";
internal const string net_webstatus_SecureChannelFailure = "net_webstatus_SecureChannelFailure";
internal const string net_webstatus_ServerProtocolViolation = "net_webstatus_ServerProtocolViolation";
internal const string net_webstatus_KeepAliveFailure = "net_webstatus_KeepAliveFailure";
internal const string net_webstatus_ProxyNameResolutionFailure = "net_webstatus_ProxyNameResolutionFailure";
internal const string net_webstatus_MessageLengthLimitExceeded = "net_webstatus_MessageLengthLimitExceeded";
internal const string net_httpstatuscode_NoContent = "net_httpstatuscode_NoContent";
internal const string net_httpstatuscode_NonAuthoritativeInformation = "net_httpstatuscode_NonAuthoritativeInformation";
internal const string net_httpstatuscode_ResetContent = "net_httpstatuscode_ResetContent";
internal const string net_httpstatuscode_PartialContent = "net_httpstatuscode_PartialContent";
internal const string net_httpstatuscode_MultipleChoices = "net_httpstatuscode_MultipleChoices";
internal const string net_httpstatuscode_Ambiguous = "net_httpstatuscode_Ambiguous";
internal const string net_httpstatuscode_MovedPermanently = "net_httpstatuscode_MovedPermanently";
internal const string net_httpstatuscode_Moved = "net_httpstatuscode_Moved";
internal const string net_httpstatuscode_Found = "net_httpstatuscode_Found";
internal const string net_httpstatuscode_Redirect = "net_httpstatuscode_Redirect";
internal const string net_httpstatuscode_SeeOther = "net_httpstatuscode_SeeOther";
internal const string net_httpstatuscode_RedirectMethod = "net_httpstatuscode_RedirectMethod";
internal const string net_httpstatuscode_NotModified = "net_httpstatuscode_NotModified";
internal const string net_httpstatuscode_UseProxy = "net_httpstatuscode_UseProxy";
internal const string net_httpstatuscode_TemporaryRedirect = "net_httpstatuscode_TemporaryRedirect";
internal const string net_httpstatuscode_RedirectKeepVerb = "net_httpstatuscode_RedirectKeepVerb";
internal const string net_httpstatuscode_BadRequest = "net_httpstatuscode_BadRequest";
internal const string net_httpstatuscode_Unauthorized = "net_httpstatuscode_Unauthorized";
internal const string net_httpstatuscode_PaymentRequired = "net_httpstatuscode_PaymentRequired";
internal const string net_httpstatuscode_Forbidden = "net_httpstatuscode_Forbidden";
internal const string net_httpstatuscode_NotFound = "net_httpstatuscode_NotFound";
internal const string net_httpstatuscode_MethodNotAllowed = "net_httpstatuscode_MethodNotAllowed";
internal const string net_httpstatuscode_NotAcceptable = "net_httpstatuscode_NotAcceptable";
internal const string net_httpstatuscode_ProxyAuthenticationRequired = "net_httpstatuscode_ProxyAuthenticationRequired";
internal const string net_httpstatuscode_RequestTimeout = "net_httpstatuscode_RequestTimeout";
internal const string net_httpstatuscode_Conflict = "net_httpstatuscode_Conflict";
internal const string net_httpstatuscode_Gone = "net_httpstatuscode_Gone";
internal const string net_httpstatuscode_LengthRequired = "net_httpstatuscode_LengthRequired";
internal const string net_httpstatuscode_InternalServerError = "net_httpstatuscode_InternalServerError";
internal const string net_httpstatuscode_NotImplemented = "net_httpstatuscode_NotImplemented";
internal const string net_httpstatuscode_BadGateway = "net_httpstatuscode_BadGateway";
internal const string net_httpstatuscode_ServiceUnavailable = "net_httpstatuscode_ServiceUnavailable";
internal const string net_httpstatuscode_GatewayTimeout = "net_httpstatuscode_GatewayTimeout";
internal const string net_httpstatuscode_HttpVersionNotSupported = "net_httpstatuscode_HttpVersionNotSupported";
internal const string net_uri_BadScheme = "net_uri_BadScheme";
internal const string net_uri_BadFormat = "net_uri_BadFormat";
internal const string net_uri_BadUserPassword = "net_uri_BadUserPassword";
internal const string net_uri_BadHostName = "net_uri_BadHostName";
internal const string net_uri_BadFileName = "net_uri_BadFileName";
internal const string net_uri_EmptyUri = "net_uri_EmptyUri";
internal const string net_uri_BadString = "net_uri_BadString";
internal const string net_io_writefailure = "net_io_writefailure";
internal const string net_io_readfailure = "net_io_readfailure";
internal const string net_io_transportfailure = "net_io_transportfailure";
internal const string net_io_internal_bind = "net_io_internal_bind";
internal const string net_io_invalidasyncresult = "net_io_invalidasyncresult";
internal const string net_io_invalidendcall = "net_io_invalidendcall";
internal const string net_tls_version = "net_tls_version";
internal const string net_perm_target = "net_perm_target";
internal const string net_perm_both_regex = "net_perm_both_regex";
internal const string net_perm_none = "net_perm_none";
internal const string net_perm_attrib_count = "net_perm_attrib_count";
internal const string net_perm_invalid_val = "net_perm_invalid_val";
internal const string net_perm_attrib_multi = "net_perm_attrib_multi";
internal const string net_perm_epname = "net_perm_epname";
internal const string net_perm_invalid_val_in_element = "net_perm_invalid_val_in_element";
internal const string dns_bad_ip_address = "dns_bad_ip_address";
internal const string net_webclient = "net_webclient";
internal const string net_webclient_ContentType = "net_webclient_ContentType";
internal const string net_webclient_Multipart = "net_webclient_Multipart";
internal const string net_container_add_cookie = "net_container_add_cookie";
internal const string net_cookie_invalid = "net_cookie_invalid";
internal const string net_cookie_size = "net_cookie_size";
internal const string net_cookie_parse_header = "net_cookie_parse_header";
internal const string net_cookie_attribute = "net_cookie_attribute";
internal const string net_cookie_format = "net_cookie_format";
internal const string net_set_token = "net_set_token";
internal const string net_revert_token = "net_revert_token";
internal const string _sep02_ = "_sep02_";
internal const string Config_name_value_file_section_file_invalid_root = "Config_name_value_file_section_file_invalid_root";
internal const string Config_system_already_set = "Config_system_already_set";
internal const string Config_base_required_attribute_missing = "Config_base_required_attribute_missing";
internal const string Config_base_required_attribute_empty = "Config_base_required_attribute_empty";
internal const string Config_base_unrecognized_attribute = "Config_base_unrecognized_attribute";
internal const string Config_base_unrecognized_element = "Config_base_unrecognized_element";
internal const string Config_base_elements_only = "Config_base_elements_only";
internal const string Config_base_no_child_nodes = "Config_base_no_child_nodes";
internal const string Config_file_doesnt_have_root_configuration = "Config_file_doesnt_have_root_configuration";
internal const string Client_config_init_error = "Client_config_init_error";
internal const string Client_config_too_many_configsections_elements = "Client_config_too_many_configsections_elements";
internal const string Exception_in_config_section_handler = "Exception_in_config_section_handler";
internal const string Tag_name_cannot_be_location = "Tag_name_cannot_be_location";
internal const string Tag_name_cannot_begin_with_config = "Tag_name_cannot_begin_with_config";
internal const string Tag_name_already_defined = "Tag_name_already_defined";
internal const string Could_not_create_type_instance = "Could_not_create_type_instance";
internal const string Type_doesnt_implement_IConfigSectionHandler = "Type_doesnt_implement_IConfigSectionHandler";
internal const string Could_not_remove_section_handler = "Could_not_remove_section_handler";
internal const string Error_loading_XML_file = "Error_loading_XML_file";
internal const string Unrecognized_configuration_section = "Unrecognized_configuration_section";
internal const string Missing_required_attribute = "Missing_required_attribute";
internal const string Invalid_boolean_attribute = "Invalid_boolean_attribute";
internal const string Invalid_integer_attribute = "Invalid_integer_attribute";
internal const string Invalid_positive_integer_attribute = "Invalid_positive_integer_attribute";
internal const string Invalid_type_attribute = "Invalid_type_attribute";
internal const string Could_not_create_listener = "Could_not_create_listener";
internal const string Cannot_remove_with_null = "Cannot_remove_with_null";
internal const string Could_not_find_type = "Could_not_find_type";
internal const string Could_not_get_constructor = "Could_not_get_constructor";
internal const string Type_isnt_tracelistener = "Type_isnt_tracelistener";
internal const string Value_must_be_numeric = "Value_must_be_numeric";
internal const string InvalidDirName = "InvalidDirName";
internal const string FSW_IOError = "FSW_IOError";
internal const string PatternInvalidChar = "PatternInvalidChar";
internal const string BufferSizeTooLarge = "BufferSizeTooLarge";
internal const string FSW_ChangedFilter = "FSW_ChangedFilter";
internal const string FSW_Enabled = "FSW_Enabled";
internal const string FSW_Filter = "FSW_Filter";
internal const string FSW_IncludeSubdirectories = "FSW_IncludeSubdirectories";
internal const string FSW_Path = "FSW_Path";
internal const string FSW_SynchronizingObject = "FSW_SynchronizingObject";
internal const string FSW_Changed = "FSW_Changed";
internal const string FSW_Created = "FSW_Created";
internal const string FSW_Deleted = "FSW_Deleted";
internal const string FSW_Renamed = "FSW_Renamed";
internal const string FSW_BufferOverflow = "FSW_BufferOverflow";
internal const string NotSet = "NotSet";
internal const string TimerAutoReset = "TimerAutoReset";
internal const string TimerEnabled = "TimerEnabled";
internal const string TimerInterval = "TimerInterval";
internal const string TimerIntervalElapsed = "TimerIntervalElapsed";
internal const string TimerSynchronizingObject = "TimerSynchronizingObject";
internal const string MismatchedCounterTypes = "MismatchedCounterTypes";
internal const string BadLogName = "BadLogName";
internal const string InvalidProperty = "InvalidProperty";
internal const string NotifyCreateFailed = "NotifyCreateFailed";
internal const string CantMonitorEventLog = "CantMonitorEventLog";
internal const string InitTwice = "InitTwice";
internal const string InvalidParameter = "InvalidParameter";
internal const string MissingParameter = "MissingParameter";
internal const string ParameterTooLong = "ParameterTooLong";
internal const string LocalSourceAlreadyExists = "LocalSourceAlreadyExists";
internal const string SourceAlreadyExists = "SourceAlreadyExists";
internal const string LocalLogAlreadyExistsAsSource = "LocalLogAlreadyExistsAsSource";
internal const string LogAlreadyExistsAsSource = "LogAlreadyExistsAsSource";
internal const string DuplicateLogName = "DuplicateLogName";
internal const string RegKeyMissing = "RegKeyMissing";
internal const string LocalRegKeyMissing = "LocalRegKeyMissing";
internal const string RegKeyMissingShort = "RegKeyMissingShort";
internal const string InvalidParameterFormat = "InvalidParameterFormat";
internal const string NoLogName = "NoLogName";
internal const string RegKeyNoAccess = "RegKeyNoAccess";
internal const string MissingLog = "MissingLog";
internal const string SourceNotRegistered = "SourceNotRegistered";
internal const string LocalSourceNotRegistered = "LocalSourceNotRegistered";
internal const string CantRetrieveEntries = "CantRetrieveEntries";
internal const string IndexOutOfBounds = "IndexOutOfBounds";
internal const string CantReadLogEntryAt = "CantReadLogEntryAt";
internal const string MissingLogProperty = "MissingLogProperty";
internal const string CantOpenLog = "CantOpenLog";
internal const string NeedSourceToOpen = "NeedSourceToOpen";
internal const string NeedSourceToWrite = "NeedSourceToWrite";
internal const string CantOpenLogAccess = "CantOpenLogAccess";
internal const string LogEntryTooLong = "LogEntryTooLong";
internal const string LogSourceMismatch = "LogSourceMismatch";
internal const string NoAccountInfo = "NoAccountInfo";
internal const string NoCurrentEntry = "NoCurrentEntry";
internal const string MessageNotFormatted = "MessageNotFormatted";
internal const string EventID = "EventID";
internal const string LogDoesNotExists = "LogDoesNotExists";
internal const string InvalidCustomerLogName = "InvalidCustomerLogName";
internal const string CannotDeleteEqualSource = "CannotDeleteEqualSource";
internal const string ConfigSectionsUnique = "ConfigSectionsUnique";
internal const string ReadOnlyCounter = "ReadOnlyCounter";
internal const string ReadOnlyRemoveInstance = "ReadOnlyRemoveInstance";
internal const string NotCustomCounter = "NotCustomCounter";
internal const string CategoryNameMissing = "CategoryNameMissing";
internal const string CounterNameMissing = "CounterNameMissing";
internal const string InstanceNameProhibited = "InstanceNameProhibited";
internal const string InstanceNameRequired = "InstanceNameRequired";
internal const string MissingInstance = "MissingInstance";
internal const string PerformanceCategoryExists = "PerformanceCategoryExists";
internal const string InvalidCounterName = "InvalidCounterName";
internal const string DuplicateCounterName = "DuplicateCounterName";
internal const string CantDeleteCategory = "CantDeleteCategory";
internal const string MissingCategory = "MissingCategory";
internal const string MissingCategoryDetail = "MissingCategoryDetail";
internal const string CantReadCategory = "CantReadCategory";
internal const string MissingCounter = "MissingCounter";
internal const string CategoryNameNotSet = "CategoryNameNotSet";
internal const string CounterExists = "CounterExists";
internal const string CantReadCategoryIndex = "CantReadCategoryIndex";
internal const string CantReadCounter = "CantReadCounter";
internal const string CantReadInstance = "CantReadInstance";
internal const string RemoteWriting = "RemoteWriting";
internal const string CounterLayout = "CounterLayout";
internal const string PossibleDeadlock = "PossibleDeadlock";
internal const string SharedMemoryGhosted = "SharedMemoryGhosted";
internal const string HelpNotAvailable = "HelpNotAvailable";
internal const string PerfInvalidHelp = "PerfInvalidHelp";
internal const string PerfInvalidCounterName = "PerfInvalidCounterName";
internal const string PerfInvalidCategoryName = "PerfInvalidCategoryName";
internal const string PerfMaxCreationDataCount = "PerfMaxCreationDataCount";
internal const string RemoteCounterAdmin = "RemoteCounterAdmin";
internal const string NoInstanceInformation = "NoInstanceInformation";
internal const string PriorityClassNotSupported = "PriorityClassNotSupported";
internal const string WinNTRequired = "WinNTRequired";
internal const string Win2kRequired = "Win2kRequired";
internal const string NoAssociatedProcess = "NoAssociatedProcess";
internal const string ProcessIdRequired = "ProcessIdRequired";
internal const string NotSupportedRemote = "NotSupportedRemote";
internal const string NoProcessInfo = "NoProcessInfo";
internal const string WaitTillExit = "WaitTillExit";
internal const string NoProcessHandle = "NoProcessHandle";
internal const string MissingProccess = "MissingProccess";
internal const string BadMinWorkset = "BadMinWorkset";
internal const string BadMaxWorkset = "BadMaxWorkset";
internal const string WinNTRequiredForRemote = "WinNTRequiredForRemote";
internal const string ProcessHasExited = "ProcessHasExited";
internal const string ProcessHasExitedNoId = "ProcessHasExitedNoId";
internal const string ThreadExited = "ThreadExited";
internal const string Win2000Required = "Win2000Required";
internal const string ProcessNotFound = "ProcessNotFound";
internal const string CantGetProcessId = "CantGetProcessId";
internal const string ProcessDisabled = "ProcessDisabled";
internal const string WaitReasonUnavailable = "WaitReasonUnavailable";
internal const string NotSupportedRemoteThread = "NotSupportedRemoteThread";
internal const string UseShellExecuteRequiresSTA = "UseShellExecuteRequiresSTA";
internal const string CantRedirectStreams = "CantRedirectStreams";
internal const string CantUseEnvVars = "CantUseEnvVars";
internal const string CouldntConnectToRemoteMachine = "CouldntConnectToRemoteMachine";
internal const string CouldntGetRemoteProcesses = "CouldntGetRemoteProcesses";
internal const string InputIdleUnkownError = "InputIdleUnkownError";
internal const string FileNameMissing = "FileNameMissing";
internal const string EnvironmentBlock = "EnvironmentBlock";
internal const string EnumProcessModuleFailed = "EnumProcessModuleFailed";
internal const string CountersOOM = "CountersOOM";
internal const string MappingCorrupted = "MappingCorrupted";
internal const string SetSecurityDescriptorFailed = "SetSecurityDescriptorFailed";
internal const string CantCreateFileMapping = "CantCreateFileMapping";
internal const string CantMapFileView = "CantMapFileView";
internal const string CantGetStandardOut = "CantGetStandardOut";
internal const string CantGetStandardIn = "CantGetStandardIn";
internal const string CantGetStandardError = "CantGetStandardError";
internal const string NoFileMappingSize = "NoFileMappingSize";
internal const string CounterType = "CounterType";
internal const string CounterName = "CounterName";
internal const string CounterHelp = "CounterHelp";
internal const string LogEntries = "LogEntries";
internal const string LogLog = "LogLog";
internal const string LogMachineName = "LogMachineName";
internal const string LogMonitoring = "LogMonitoring";
internal const string LogSynchronizingObject = "LogSynchronizingObject";
internal const string LogSource = "LogSource";
internal const string LogEntryWritten = "LogEntryWritten";
internal const string LogEntryMachineName = "LogEntryMachineName";
internal const string LogEntryData = "LogEntryData";
internal const string LogEntryIndex = "LogEntryIndex";
internal const string LogEntryCategory = "LogEntryCategory";
internal const string LogEntryCategoryNumber = "LogEntryCategoryNumber";
internal const string LogEntryEventID = "LogEntryEventID";
internal const string LogEntryEntryType = "LogEntryEntryType";
internal const string LogEntryMessage = "LogEntryMessage";
internal const string LogEntrySource = "LogEntrySource";
internal const string LogEntryReplacementStrings = "LogEntryReplacementStrings";
internal const string LogEntryTimeGenerated = "LogEntryTimeGenerated";
internal const string LogEntryTimeWritten = "LogEntryTimeWritten";
internal const string LogEntryUserName = "LogEntryUserName";
internal const string PC_CounterHelp = "PC_CounterHelp";
internal const string PC_CounterType = "PC_CounterType";
internal const string PC_ReadOnly = "PC_ReadOnly";
internal const string PC_RawValue = "PC_RawValue";
internal const string ProcessAssociated = "ProcessAssociated";
internal const string ProcessExitCode = "ProcessExitCode";
internal const string ProcessTerminated = "ProcessTerminated";
internal const string ProcessExitTime = "ProcessExitTime";
internal const string ProcessHandle = "ProcessHandle";
internal const string ProcessHandleCount = "ProcessHandleCount";
internal const string ProcessId = "ProcessId";
internal const string ProcessMachineName = "ProcessMachineName";
internal const string ProcessMainModule = "ProcessMainModule";
internal const string ProcessModules = "ProcessModules";
internal const string ProcessSynchronizingObject = "ProcessSynchronizingObject";
internal const string ProcessThreads = "ProcessThreads";
internal const string ProcessEnableRaisingEvents = "ProcessEnableRaisingEvents";
internal const string ProcessExited = "ProcessExited";
internal const string ProcessFileName = "ProcessFileName";
internal const string ProcessWorkingDirectory = "ProcessWorkingDirectory";
internal const string ProcessBasePriority = "ProcessBasePriority";
internal const string ProcessMainWindowHandle = "ProcessMainWindowHandle";
internal const string ProcessMainWindowTitle = "ProcessMainWindowTitle";
internal const string ProcessMaxWorkingSet = "ProcessMaxWorkingSet";
internal const string ProcessMinWorkingSet = "ProcessMinWorkingSet";
internal const string ProcessNonpagedSystemMemorySize = "ProcessNonpagedSystemMemorySize";
internal const string ProcessPagedMemorySize = "ProcessPagedMemorySize";
internal const string ProcessPagedSystemMemorySize = "ProcessPagedSystemMemorySize";
internal const string ProcessPeakPagedMemorySize = "ProcessPeakPagedMemorySize";
internal const string ProcessPeakWorkingSet = "ProcessPeakWorkingSet";
internal const string ProcessPeakVirtualMemorySize = "ProcessPeakVirtualMemorySize";
internal const string ProcessPriorityBoostEnabled = "ProcessPriorityBoostEnabled";
internal const string ProcessPriorityClass = "ProcessPriorityClass";
internal const string ProcessPrivateMemorySize = "ProcessPrivateMemorySize";
internal const string ProcessPrivilegedProcessorTime = "ProcessPrivilegedProcessorTime";
internal const string ProcessProcessName = "ProcessProcessName";
internal const string ProcessProcessorAffinity = "ProcessProcessorAffinity";
internal const string ProcessResponding = "ProcessResponding";
internal const string ProcessStandardError = "ProcessStandardError";
internal const string ProcessStandardInput = "ProcessStandardInput";
internal const string ProcessStandardOutput = "ProcessStandardOutput";
internal const string ProcessStartInfo = "ProcessStartInfo";
internal const string ProcessStartTime = "ProcessStartTime";
internal const string ProcessTotalProcessorTime = "ProcessTotalProcessorTime";
internal const string ProcessUserProcessorTime = "ProcessUserProcessorTime";
internal const string ProcessVirtualMemorySize = "ProcessVirtualMemorySize";
internal const string ProcessWorkingSet = "ProcessWorkingSet";
internal const string ProcModModuleName = "ProcModModuleName";
internal const string ProcModFileName = "ProcModFileName";
internal const string ProcModBaseAddress = "ProcModBaseAddress";
internal const string ProcModModuleMemorySize = "ProcModModuleMemorySize";
internal const string ProcModEntryPointAddress = "ProcModEntryPointAddress";
internal const string ProcessVerb = "ProcessVerb";
internal const string ProcessArguments = "ProcessArguments";
internal const string ProcessErrorDialog = "ProcessErrorDialog";
internal const string ProcessWindowStyle = "ProcessWindowStyle";
internal const string ProcessCreateNoWindow = "ProcessCreateNoWindow";
internal const string ProcessEnvironmentVariables = "ProcessEnvironmentVariables";
internal const string ProcessRedirectStandardInput = "ProcessRedirectStandardInput";
internal const string ProcessRedirectStandardOutput = "ProcessRedirectStandardOutput";
internal const string ProcessRedirectStandardError = "ProcessRedirectStandardError";
internal const string ProcessUseShellExecute = "ProcessUseShellExecute";
internal const string ThreadBasePriority = "ThreadBasePriority";
internal const string ThreadCurrentPriority = "ThreadCurrentPriority";
internal const string ThreadId = "ThreadId";
internal const string ThreadPriorityBoostEnabled = "ThreadPriorityBoostEnabled";
internal const string ThreadPriorityLevel = "ThreadPriorityLevel";
internal const string ThreadPrivilegedProcessorTime = "ThreadPrivilegedProcessorTime";
internal const string ThreadStartAddress = "ThreadStartAddress";
internal const string ThreadStartTime = "ThreadStartTime";
internal const string ThreadThreadState = "ThreadThreadState";
internal const string ThreadTotalProcessorTime = "ThreadTotalProcessorTime";
internal const string ThreadUserProcessorTime = "ThreadUserProcessorTime";
internal const string ThreadWaitReason = "ThreadWaitReason";
internal const string VerbEditorDefault = "VerbEditorDefault";
internal const string AppSettingsReaderNoKey = "AppSettingsReaderNoKey";
internal const string AppSettingsReaderNoParser = "AppSettingsReaderNoParser";
internal const string AppSettingsReaderCantParse = "AppSettingsReaderCantParse";
internal const string AppSettingsReaderEmptyString = "AppSettingsReaderEmptyString";
internal const string PermissionNumberOfElements = "PermissionNumberOfElements";
internal const string PermissionItemExists = "PermissionItemExists";
internal const string PermissionItemDoesntExist = "PermissionItemDoesntExist";
private static SR loader = null;
private ResourceManager resources;
internal SR()
{
resources = new ResourceManager("System", base.GetType().Module.Assembly);
}
private static SR GetLoader()
{
if (loader == null)
{
Type type;
Monitor.Enter(type = typeof(SR));
try
{
if (loader == null)
{
loader = new SR();
}
}
finally
{
Monitor.Exit(type);
}
}
return loader;
}
public static string GetString(string name, params object[] args)
{
return GetString(null, name, args);
}
public static string GetString(CultureInfo culture, string name, params object[] args)
{
SR sR = GetLoader();
if (sR == null)
{
return null;
}
string str = sR.resources.GetString(name, culture);
if (args != null && (int)args.Length > 0)
{
return String.Format(str, args);
}
else
{
return str;
}
}
public static string GetString(string name)
{
return GetString(null, name);
}
public static string GetString(CultureInfo culture, string name)
{
SR sR = GetLoader();
if (sR == null)
{
return null;
}
else
{
return sR.resources.GetString(name, culture);
}
}
public static bool GetBoolean(string name)
{
return GetBoolean(null, name);
}
public static bool GetBoolean(CultureInfo culture, string name)
{
bool flag = false;
SR sR = GetLoader();
if (sR != null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Boolean)
{
flag = (bool)local;
}
}
return flag;
}
public static char GetChar(string name)
{
return GetChar(null, name);
}
public static char GetChar(CultureInfo culture, string name)
{
char ch = '\0';
SR sR = GetLoader();
if (sR != null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Char)
{
ch = (char)local;
}
}
return ch;
}
public static byte GetByte(string name)
{
return GetByte(null, name);
}
public static byte GetByte(CultureInfo culture, string name)
{
byte b = 0;
SR sR = GetLoader();
if (sR != null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Byte)
{
b = (byte)local;
}
}
return b;
}
public static short GetShort(string name)
{
return GetShort(null, name);
}
public static short GetShort(CultureInfo culture, string name)
{
short s = 0;
SR sR = GetLoader();
if (sR != null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Int16)
{
s = (short)local;
}
}
return s;
}
public static int GetInt(string name)
{
return GetInt(null, name);
}
public static int GetInt(CultureInfo culture, string name)
{
int i = 0;
SR sR = GetLoader();
if (sR != null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Int32)
{
i = (int)local;
}
}
return i;
}
public static long GetLong(string name)
{
return GetLong(null, name);
}
public static long GetLong(CultureInfo culture, string name)
{
long l = 0;
SR sR = GetLoader();
if (sR != null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Int64)
{
l = (long)local;
}
}
return l;
}
public static float GetFloat(string name)
{
return GetFloat(null, name);
}
public static float GetFloat(CultureInfo culture, string name)
{
float f = 0.0F;
SR sR = GetLoader();
if (sR == null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Single)
{
f = (float)local;
}
}
return f;
}
public static double GetDouble(string name)
{
return GetDouble(null, name);
}
public static double GetDouble(CultureInfo culture, string name)
{
double d = 0.0;
SR sR = GetLoader();
if (sR == null)
{
object local = sR.resources.GetObject(name, culture);
if (local is Double)
{
d = (double)local;
}
}
return d;
}
public static object GetObject(string name)
{
return GetObject(null, name);
}
public static object GetObject(CultureInfo culture, string name)
{
SR sR = GetLoader();
if (sR == null)
{
return null;
}
else
{
return sR.resources.GetObject(name, culture);
}
}
}
}
------=_20040517115600_58926
Content-Type: text/plain; name="CSharpMemberAttributeConverter.cs"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
filename="CSharpMemberAttributeConverter.cs"
//
// Microsoft.CSharp CSharpMemberAttributeConverter Class implementation
//
// Author:
// Fabricio Igor P. A. do Nascimento (fabricio.igor@buildersolutions.net)
//
//
//
using System;
using System.CodeDom;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
namespace Microsoft.CSharp
{
class CSharpMemberAttributeConverter:TypeConverter
{
private static string[] names;
private static object[] values;
private static CSharpMemberAttributeConverter defaultConverter;
public static CSharpMemberAttributeConverter Default
{
get
{
if (defaultConverter == null)
{
defaultConverter = new CSharpMemberAttributeConverter();
}
return defaultConverter;
}
}
private string[] Names
{
get
{
if (names == null)
{
names = new string[]{"Public", "Protected", "Protected Internal", "Internal", "Private"};
}
return names;
}
}
private object[] Values
{
get
{
if (values == null)
{
values = new object[]{24576, 12288, 16384, 4096, 20480};
}
return values;
}
}
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
if (sourceType == typeof(string))
{
return true;
}
else
{
return base.CanConvertFrom(context, sourceType);
}
}
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
if (value is String)
{
string str = (String)value;
string[] strs = Names;
for (int i = 0; i < (int)strs.Length; i++)
{
if (strs[i].Equals(str))
{
return Values[i];
}
}
}
return 20480;
}
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (destinationType == null)
{
throw new ArgumentNullException("destinationType");
}
if (destinationType != typeof(string))
{
return base.ConvertTo(context, culture, value, destinationType);
}
object[] locals = Values;
for (int i = 0; i < (int)locals.Length; i++)
{
if (locals[i].Equals(value))
{
return Names[i];
}
}
return SR.GetString("toStringUnknown");
}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
{
return true;
}
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return true;
}
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
return new StandardValuesCollection(Values);
}
}
}
------=_20040517115600_58926
Content-Type: text/plain; name="CSharpCodeProvider.cs"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="CSharpCodeProvider.cs"
//
// Microsoft.CSharp CSharpCodeProvider Class implementation
//
// Author:
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2002 Ximian, Inc.
//
namespace Microsoft.CSharp
{
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.ComponentModel;
public class CSharpCodeProvider:CodeDomProvider
{
//
// Constructors
//
public CSharpCodeProvider()
{
}
//
// Properties
//
public override string FileExtension {
get {
return "cs";
}
}
//
// Methods
//
public override ICodeCompiler CreateCompiler()
{
return new Mono.CSharp.CSharpCodeCompiler();
}
public override ICodeGenerator CreateGenerator()
{
return new Mono.CSharp.CSharpCodeGenerator();
}
[MonoTODO]
public override TypeConverter GetConverter( Type Type )
{
if (Type == typeof(MemberAttributes))
{
return CSharpMemberAttributeConverter.Default;
}
else
{
return base.GetConverter(Type);
}
}
}
}
------=_20040517115600_58926--