microsoft\win32\fusionwrap.cs (7)
40void Set([MarshalAs(UnmanagedType.LPWStr)] String szName, int pvValue, uint cbValue, uint dwFlags);
41void Get([MarshalAs(UnmanagedType.LPWStr)] String szName, out int pvValue, ref uint pcbValue, uint dwFlags);
61[MarshalAs(UnmanagedType.LPWStr)] String szCodeBase,
118public static void ReadCache(ArrayList alAssems, String name, uint nFlag)
147String sDisplayName = GetDisplayName(aName, 0);
156static unsafe String GetDisplayName(IAssemblyName aName, uint dwDisplayFlags)
159String sDisplayName = null;
microsoft\win32\registrykey.cs (55)
137private static readonly String[] hkeyNames = new String[] {
157private volatile String keyName;
288public RegistryKey CreateSubKey(String subkey) {
295public RegistryKey CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck)
303public RegistryKey CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions options)
309public RegistryKey CreateSubKey(String subkey, bool writable)
315public RegistryKey CreateSubKey(String subkey, bool writable, RegistryOptions options)
325public unsafe RegistryKey CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)
333public unsafe RegistryKey CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions, RegistrySecurity registrySecurity)
343private unsafe RegistryKey CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, object registrySecurityObj, RegistryOptions registryOptions)
422public void DeleteSubKey(String subkey) {
429public void DeleteSubKey(String subkey, bool throwOnMissingSubKey) {
481public void DeleteSubKeyTree(String subkey) {
489public void DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey) {
507String[] keys = key.InternalGetSubKeyNames();
544String[] keys = key.InternalGetSubKeyNames();
577public void DeleteValue(String name) {
584public void DeleteValue(String name, bool throwOnMissingValue) {
674public static RegistryKey OpenRemoteBaseKey(RegistryHive hKey, String machineName) {
682public static RegistryKey OpenRemoteBaseKey(RegistryHive hKey, String machineName, RegistryView view) {
765public RegistryKey OpenSubKey(String name, RegistryKeyPermissionCheck permissionCheck) {
772public RegistryKey OpenSubKey(String name, RegistryRights rights)
781public RegistryKey OpenSubKey(String name, RegistryKeyPermissionCheck permissionCheck, RegistryRights rights) {
788private RegistryKey InternalOpenSubKey(String name, RegistryKeyPermissionCheck permissionCheck, int rights) {
824internal RegistryKey InternalOpenSubKey(String name, bool writable) {
855public RegistryKey OpenSubKey(String name) {
997public String[] GetSubKeyNames() {
1003internal unsafe String[] InternalGetSubKeyNames() {
1006String[] names = new String[subkeys]; // Returns 0-length array if empty.
1076public unsafe String[] GetValueNames() {
1081String[] names = new String[values];
1127public Object GetValue(String name) {
1152public Object GetValue(String name, Object defaultValue) {
1163public Object GetValue(String name, Object defaultValue, RegistryValueOptions options) {
1173internal Object InternalGetValue(String name, Object defaultValue, bool doNotExpand, bool checkSecurity) {
1315data = Environment.ExpandEnvironmentVariables((String)data);
1350IList<String> strings = new List<String>();
1369strings.Add(String.Empty);
1378data = new String[strings.Count];
1379strings.CopyTo((String[])data, 0);
1434public String Name {
1452public void SetValue(String name, Object value) {
1458public unsafe void SetValue(String name, Object value, RegistryValueKind valueKind) {
1490String data = value.ToString();
1525String.InternalCopy(dataStrings[i],currentPtr,(checked(dataStrings[i].Length*2)));
1614else if (value is String[])
1629public override String ToString() {
1663internal void Win32Error(int errorCode, String str) {
1702internal static void Win32ErrorStatic(int errorCode, String str) {
1715internal static String FixupName(String name)
microsoft\win32\win32native.cs (74)
411internal String CSDVersion = null;
712internal const String KERNEL32 = "kernel32.dll";
713internal const String USER32 = "user32.dll";
714internal const String ADVAPI32 = "advapi32.dll";
715internal const String OLE32 = "ole32.dll";
716internal const String OLEAUT32 = "oleaut32.dll";
717internal const String SHELL32 = "shell32.dll";
718internal const String SHIM = "mscoree.dll";
719internal const String CRYPT32 = "crypt32.dll";
720internal const String SECUR32 = "secur32.dll";
721internal const String NTDLL = "ntdll.dll";
725internal const String MSCORWKS = "clr.dll";
742internal static String GetMessage(int errorCode) {
822private static extern IntPtr GetProcAddress(IntPtr hModule, String methodName);
827private static extern IntPtr GetModuleHandle(String moduleName);
830internal static bool DoesWin32MethodExist(String moduleName, String methodName)
869internal static extern IntPtr SysAllocStringLen(String src, int len); // BSTR
913internal static extern SafeWaitHandle CreateEvent(SECURITY_ATTRIBUTES lpSecurityAttributes, bool isManualReset, bool initialState, String name);
917internal static extern SafeWaitHandle OpenEvent(/* DWORD */ int desiredAccess, bool inheritHandle, String name);
922internal static extern SafeWaitHandle CreateMutex(SECURITY_ATTRIBUTES lpSecurityAttributes, bool initialOwner, String name);
926internal static extern SafeWaitHandle OpenMutex(/* DWORD */ int desiredAccess, bool inheritHandle, String name);
943internal unsafe static extern int GetFullPathName(String path, int numBufferChars, [Out]StringBuilder buffer, IntPtr mustBeZero);
951internal static extern int GetLongPathName(String path, [Out]StringBuilder longPathBuffer, int bufferLength);
969internal static SafeFileHandle SafeCreateFile(String lpFileName,
993internal static SafeFileHandle UnsafeCreateFile(String lpFileName,
1011private static extern SafeFileHandle CreateFile(String lpFileName,
1018internal static extern SafeFileMappingHandle CreateFileMapping(SafeFileHandle hFile, IntPtr lpAttributes, uint fProtect, uint dwMaximumSizeHigh, uint dwMaximumSizeLow, String lpName);
1106internal static extern bool GetDiskFreeSpaceEx(String drive, out long freeBytesForUser, out long totalBytes, out long freeBytes);
1110internal static extern int GetDriveType(String drive);
1114internal static extern bool GetVolumeInformation(String drive, [Out]StringBuilder volumeName, int volumeNameBufLen, out int volSerialNumber, out int maxFileNameLen, out int fileSystemFlags, [Out]StringBuilder fileSystemName, int fileSystemNameBufLen);
1118internal static extern bool SetVolumeLabel(String driveLetter, String volumeName);
1133internal static extern SafeWaitHandle CreateSemaphore(SECURITY_ATTRIBUTES lpSecurityAttributes, int initialCount, int maximumCount, String name);
1391String src, String dst, bool failIfExists);
1397String path, SECURITY_ATTRIBUTES lpSecurityAttributes);
1401internal static extern bool DeleteFile(String path);
1405internal static extern bool ReplaceFile(String replacedFileName, String replacementFileName, String backupFileName, int dwReplaceFlags, IntPtr lpExclude, IntPtr lpReserved);
1409internal static extern bool DecryptFile(String path, int reservedMustBeZero);
1413internal static extern bool EncryptFile(String path);
1442internal static extern bool GetFileAttributesEx(String name, int fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
1446internal static extern bool SetFileAttributes(String name, int attr);
1454internal static extern uint GetTempFileName(String tmpPath, String prefix, uint uniqueIdOrZero, [Out]StringBuilder tmpFileName);
1468internal static extern bool MoveFile(String src, String dst);
1473internal static extern bool DeleteVolumeMountPoint(String mountPoint);
1477internal static extern bool RemoveDirectory(String path);
1481internal static extern bool SetCurrentDirectory(String path);
1717internal static extern bool SetConsoleTitle(String title);
1769internal static extern int RegConnectRegistry(String machineName,
1776internal static extern int RegCreateKeyEx(SafeRegistryHandle hKey, String lpSubKey,
1777int Reserved, String lpClass, int dwOptions,
1783internal static extern int RegDeleteKey(SafeRegistryHandle hKey, String lpSubKey);
1787internal static extern int RegDeleteKeyEx(SafeRegistryHandle hKey, String lpSubKey,
1792internal static extern int RegDeleteValue(SafeRegistryHandle hKey, String lpValueName);
1815internal static extern int RegOpenKeyEx(SafeRegistryHandle hKey, String lpSubKey,
1820internal static extern int RegOpenKeyEx(IntPtr hKey, String lpSubKey,
1834internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName,
1840internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName,
1846internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName,
1852internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName,
1858internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName,
1864internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName,
1869internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName,
1874internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName,
1879internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName,
1880int Reserved, RegistryValueKind dwType, String lpData, int cbData);
1884internal static extern int ExpandEnvironmentStrings(String lpSrc, [Out]StringBuilder lpDst, int nSize);
2011internal static extern IntPtr SendMessageTimeout(IntPtr hWnd, int Msg, IntPtr wParam, String lParam, uint fuFlags, uint uTimeout, IntPtr lpdwResult);
2762internal static extern int CreateAssemblyNameObject(out IAssemblyName ppEnum, String szAssemblyName, uint dwFlags, IntPtr pvReserved);
system\activator.cs (22)
144static public ObjectHandle CreateInstance(String assemblyName,
145String typeName)
162static public ObjectHandle CreateInstance(String assemblyName,
163String typeName,
228static public ObjectHandle CreateInstanceFrom(String assemblyFile,
229String typeName)
237static public ObjectHandle CreateInstanceFrom(String assemblyFile,
238String typeName,
255static public ObjectHandle CreateInstance(String assemblyName,
256String typeName,
303static internal ObjectHandle CreateInstance(String assemblyString,
304String typeName,
369static public ObjectHandle CreateInstanceFrom(String assemblyFile,
370String typeName,
422private static ObjectHandle CreateInstanceFromInternal(String assemblyFile,
423String typeName,
620public static ObjectHandle CreateComInstanceFrom(String assemblyName,
621String typeName)
632public static ObjectHandle CreateComInstanceFrom(String assemblyName,
633String typeName,
674static public Object GetObject(Type type, String url)
682static public Object GetObject(Type type, String url, Object state)
system\appdomain.cs (135)
66private String _Name;
69public String Name {
83public ResolveEventArgs(String name)
88public ResolveEventArgs(String name, Assembly requestingAssembly)
221private Dictionary<String, Object[]> _LocalStore;
338private String[] _aptcaVisibleAssemblies;
344private Dictionary<String, object> _compatFlags;
360internal const String TargetFrameworkNameAppCompatSetting = "TargetFrameworkName";
604_compatFlags = new Dictionary<String, object>(adSetup.GetCompatibilityFlags(), StringComparer.OrdinalIgnoreCase);
621internal String GetTargetFrameworkName()
623String targetFrameworkName = _FusionStore.TargetFrameworkName;
831internal String[] PartialTrustVisibleAssemblies
1062if (!String.IsNullOrEmpty(entryPointPath))
1265String dir)
1329String dir,
1347String dir,
1398String dir,
1426String dir,
1454String dir,
1482String dir,
1506String dir,
1530private extern String nApplyPolicy(AssemblyName an);
1534public String ApplyPolicy(String assemblyName)
1551public ObjectHandle CreateInstance(String assemblyName,
1552String typeName)
1575public ObjectHandle CreateInstanceFrom(String assemblyFile,
1576String typeName)
1601public ObjectHandle CreateComInstanceFrom(String assemblyName,
1602String typeName)
1615public ObjectHandle CreateComInstanceFrom(String assemblyFile,
1616String typeName,
1633public ObjectHandle CreateInstance(String assemblyName,
1634String typeName,
1653public ObjectHandle CreateInstanceFrom(String assemblyFile,
1654String typeName,
1669public ObjectHandle CreateInstance(String assemblyName,
1670String typeName,
1758public ObjectHandle CreateInstanceFrom(String assemblyFile,
1759String typeName,
1851public Assembly Load(String assemblyString)
1927public Assembly Load(String assemblyString,
1936public int ExecuteAssembly(String assemblyFile)
1944public int ExecuteAssembly(String assemblyFile,
1953public int ExecuteAssembly(String assemblyFile,
1955String[] args)
1967args = new String[0];
1979args = new String[0];
1987public int ExecuteAssembly(String assemblyFile,
1989String[] args,
2005args = new String[0];
2021args = new String[0];
2029public int ExecuteAssemblyByName(String assemblyName)
2035public int ExecuteAssemblyByName(String assemblyName,
2044public int ExecuteAssemblyByName(String assemblyName,
2046params String[] args)
2058args = new String[0];
2068args = new String[0];
2076params String[] args)
2088args = new String[0];
2098args = new String[0];
2173public String FriendlyName
2179public String BaseDirectory
2192public String RelativeSearchPath
2202String s = FusionStore.ShadowCopyFiles;
2204(String.Compare(s, "true", StringComparison.OrdinalIgnoreCase) == 0))
2213public override String ToString()
2217String fn = nGetFriendlyName();
2278public void AppendPrivatePath(String path)
2283String current = FusionStore.Value[(int) AppDomainSetup.LoaderInformation.PrivateBinPathValue];
2295String result = StringBuilderCache.GetStringAndRelease(appendPath);
2306InternalSetPrivateBinPath(String.Empty);
2315InternalSetShadowCopyPath(String.Empty);
2322public void SetCachePath(String path)
2379_FusionStore.TargetFrameworkName = (String) data;
2555public Nullable<bool> IsCompatibilitySwitchSet(String value)
2720public String DynamicDirectory
2726String dyndir = GetDynamicDir();
2737public static AppDomain CreateDomain(String friendlyName,
2747public static AppDomain CreateDomain(String friendlyName,
2749String appBasePath,
2750String appRelativeSearchPath,
2769extern private String GetDynamicDir();
2777public static AppDomain CreateDomain(String friendlyName)
2959private extern int _nExecuteAssembly(RuntimeAssembly assembly, String[] args);
2960internal int nExecuteAssembly(RuntimeAssembly assembly, String[] args)
3008private extern String nGetFriendlyName();
3120private RuntimeAssembly OnResourceResolveEvent(RuntimeAssembly assembly, String resourceName)
3140private RuntimeAssembly OnTypeResolveEvent(RuntimeAssembly assembly, String typeName)
3160private RuntimeAssembly OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
3183private RuntimeAssembly OnReflectionOnlyAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
3245private Dictionary<String, Object[]> LocalStore
3251_LocalStore = new Dictionary<String, Object[]>();
3311new String[] {""});
3396public static AppDomain CreateDomain(String friendlyName,
3412internal static AppDomain InternalCreateDomain(String friendlyName,
3482public static AppDomain CreateDomain(String friendlyName,
3484String appBasePath,
3485String appRelativeSearchPath,
3613private static object PrepareDataForSetup(String friendlyName,
3733String friendlyName = (String)args[0];
4035String name = assemblyName.GetNameWithPublicKey();
4138private void SetupDomain(bool allowRedirects, String path, String configFile, String[] propertyNames, String[] propertyValues)
4168if (String.Equals(propertyNames[i], "PARTIAL_TRUST_VISIBLE_ASSEMBLIES", StringComparison.Ordinal)) {
4235internal static extern AppDomain nCreateDomain(String friendlyName,
4244internal static extern ObjRef nCreateInstance(String friendlyName,
4301public void SetShadowCopyPath(String path)
4317public void SetDynamicBase(String path)
4334internal void InternalSetShadowCopyPath(String path)
4355internal void InternalSetCachePath(String path)
4369internal void InternalSetPrivateBinPath(String path)
4379internal void InternalSetDynamicBase(String path)
4394internal extern String IsStringInterned(String str);
4399internal extern String GetOrInternString(String str);
4519public Object CreateInstanceAndUnwrap(String assemblyName,
4520String typeName)
4530public Object CreateInstanceAndUnwrap(String assemblyName,
4531String typeName,
4543public Object CreateInstanceAndUnwrap(String assemblyName,
4544String typeName,
4594public Object CreateInstanceFromAndUnwrap(String assemblyName,
4595String typeName)
4609public Object CreateInstanceFromAndUnwrap(String assemblyName,
4610String typeName,
4626public Object CreateInstanceFromAndUnwrap(String assemblyName,
4627String typeName,
4699private static AppDomainSetup InternalCreateDomainSetup(String imageLocation)
4720private static AppDomain InternalCreateDomain(String imageLocation)
4858private void InternalSetDomainContext(String imageLocation)
system\AppDomainSetup.cs (67)
81private String _AppBase; // for compat with v1.1
119private String _TargetFrameworkName;
223if (!String.IsNullOrEmpty(entryPointPath))
259_Entries = new String[LOADER_MAXIMUM];
264internal String GetUnsecureApplicationBase()
297public String ApplicationBase
346(String.Compare( path, 0, "file:", 0, 5, StringComparison.OrdinalIgnoreCase) == 0)) {
429String appBase = Value[(int)LoaderInformation.ApplicationBaseValue];
491private bool IsFilePath(String path)
496internal static String ApplicationBaseKey
503public String ConfigurationFile
521internal String ConfigurationFileInternal
530internal static String ConfigurationFileKey
550private static String ConfigurationBytesKey
563public void SetCompatibilitySwitches(IEnumerable<String> switches)
580foreach (String str in switches)
617public String TargetFrameworkName {
646if(String.IsNullOrWhiteSpace(functionName))
663if(String.Equals(functionName, "IsNLSDefinedString", StringComparison.OrdinalIgnoreCase))
668if (String.Equals(functionName, "CompareStringEx", StringComparison.OrdinalIgnoreCase))
673if (String.Equals(functionName, "LCMapStringEx", StringComparison.OrdinalIgnoreCase))
678if (String.Equals(functionName, "FindNLSStringEx", StringComparison.OrdinalIgnoreCase))
683if (String.Equals(functionName, "CompareStringOrdinal", StringComparison.OrdinalIgnoreCase))
688if (String.Equals(functionName, "GetNLSVersionEx", StringComparison.OrdinalIgnoreCase))
693if (String.Equals(functionName, "FindStringOrdinal", StringComparison.OrdinalIgnoreCase))
700public String DynamicBase
730internal static String DynamicBaseKey
803private String VerifyDir(String dir, bool normalize)
841private void VerifyDirList(String dirs)
844String[] dirArray = dirs.Split(';');
852internal String DeveloperPath
858String dirs = Value[(int) LoaderInformation.DevPathValue];
869String[] directories = value.Split(';');
885String newString = StringBuilderCache.GetStringAndRelease(newPath);
894internal static String DisallowPublisherPolicyKey
902internal static String DisallowCodeDownloadKey
910internal static String DisallowBindingRedirectsKey
918internal static String DeveloperPathKey
925internal static String DisallowAppBaseProbingKey
933public String ApplicationName
944internal static String ApplicationNameKey
1047public String PrivateBinPath
1053String dirs = Value[(int) LoaderInformation.PrivateBinPathValue];
1065internal static String PrivateBinPathKey
1073public String PrivateBinPathProbe
1084internal static String PrivateBinPathProbeKey
1091public String ShadowCopyDirectories
1097String dirs = Value[(int) LoaderInformation.ShadowCopyDirectoriesValue];
1109internal static String ShadowCopyDirectoriesKey
1116public String ShadowCopyFiles
1124(String.Compare(value, "true", StringComparison.OrdinalIgnoreCase) == 0))
1131internal static String ShadowCopyFilesKey
1138public String CachePath
1154internal static String CachePathKey
1161public String LicenseFile
1202internal static String PrivateBinPathEnvironmentVariable
1234internal bool UpdateContextPropertyIfNeeded(LoaderInformation FieldValue, String FieldKey, String UpdatedField, IntPtr fusionContext, AppDomainSetup oldADS)
1236String FieldString = Value[(int) FieldValue],
1249internal void UpdateBooleanContextPropertyIfNeeded(LoaderInformation FieldValue, String FieldKey, IntPtr fusionContext, AppDomainSetup oldADS)
1277internal static void UpdateByteArrayContextPropertyIfNeeded(Byte[] NewArray, Byte[] OldArray, String FieldKey, IntPtr fusionContext)
1321String hostBindingFile = RuntimeEnvironment.GetHostBindingFile();
1332static internal int Locate(String s)
1334if(String.IsNullOrEmpty(s))
1403String binPath = Value[(int) LoaderInformation.PrivateBinPathValue];
1408String appBase = Value[(int) LoaderInformation.ApplicationBaseValue];
system\badimageformatexception.cs (17)
30private String _fileName; // The name of the corrupt PE file.
31private String _fusionLog; // fusion log (when applicable)
38public BadImageFormatException(String message)
43public BadImageFormatException(String message, Exception inner)
48public BadImageFormatException(String message, String fileName) : base(message)
54public BadImageFormatException(String message, String fileName, Exception inner)
60public override String Message
80public String FileName {
84public override String ToString()
86String s = GetType().FullName + ": " + Message;
130private BadImageFormatException(String fileName, String fusionLog, int hResult)
140public String FusionLog {
154info.AddValue("BadImageFormat_FileName", _fileName, typeof(String));
157info.AddValue("BadImageFormat_FusionLog", FusionLog, typeof(String));
system\bcldebug.cs (18)
39internal String name;
42internal SwitchStructure (String n, int v) {
108static public void Assert(bool condition, String message) {
121static public void Log(String message) {
135static public void Log(String switchName, String message) {
211internal static bool CheckEnabled(String switchName) {
224private static bool CheckEnabled(String switchName, LogLevel level, out LogSwitch logSwitch) {
241public static void Log(String switchName, LogLevel level, params Object[]messages) {
258String s;
278public static void Trace(String switchName, params Object[]messages) {
291String s;
311public static void Trace(String switchName, String format, params Object[] messages) {
330public static void DumpStack(String switchName) {
351internal static void ConsoleError(String msg)
375internal static void Perf(bool expr, String msg)
397internal static void Correctness(bool expr, String msg)
system\byte.cs (18)
91public static byte Parse(String s) {
96public static byte Parse(String s, NumberStyles style) {
102public static byte Parse(String s, IFormatProvider provider) {
111public static byte Parse(String s, NumberStyles style, IFormatProvider provider) {
116private static byte Parse(String s, NumberStyles style, NumberFormatInfo info) {
129public static bool TryParse(String s, out Byte result) {
133public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out Byte result) {
138private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Byte result) {
153public override String ToString() {
154Contract.Ensures(Contract.Result<String>() != null);
160public String ToString(String format) {
161Contract.Ensures(Contract.Result<String>() != null);
167public String ToString(IFormatProvider provider) {
168Contract.Ensures(Contract.Result<String>() != null);
174public String ToString(String format, IFormatProvider provider) {
175Contract.Ensures(Contract.Result<String>() != null);
system\cfgparser.cs (42)
145[MarshalAs(UnmanagedType.LPWStr)] String text,
152[MarshalAs(UnmanagedType.LPWStr)] String text,
161[MarshalAs(UnmanagedType.LPWStr)] String text,
169[MarshalAs(UnmanagedType.LPWStr)] String text,
177[MarshalAs(UnmanagedType.LPWStr)]String text,
184[MarshalAs(UnmanagedType.LPWStr)]String text,
192[MarshalAs(UnmanagedType.LPWStr)]String text,
199[MarshalAs(UnmanagedType.LPWStr)]String text,
207[MarshalAs(UnmanagedType.LPWStr)]String text,
214[MarshalAs(UnmanagedType.LPWStr)]String text,
221internal extern void RunParser(String fileName);
229String fileName = null;
231String key = null;
232String [] treeRootPath = null; // element to start tree
240String lastProcessed = null;
248internal ConfigNode Parse(String fileName, String configPath)
256internal ConfigNode Parse(String fileName, String configPath, bool skipSecurityStuff)
268treeRootPath = new String[1];
297String message = GetInvalidSyntaxMessage();
319[MarshalAs(UnmanagedType.LPWStr)] String text,
327&& String.Compare(text, treeRootPath[searchDepth], StringComparison.Ordinal) == 0))
338[MarshalAs(UnmanagedType.LPWStr)] String text,
357if(depth == searchDepth && String.Compare(text, treeRootPath[searchDepth - 1], StringComparison.Ordinal) == 0)
371[MarshalAs(UnmanagedType.LPWStr)]String text,
382[MarshalAs(UnmanagedType.LPWStr)]String text,
396String.Compare(text, treeRootPath[0], StringComparison.OrdinalIgnoreCase) == 0)
398String.Compare(text, treeRootPath[pathDepth], StringComparison.OrdinalIgnoreCase) == 0 ))
426[MarshalAs(UnmanagedType.LPWStr)]String text,
446String message = GetInvalidSyntaxMessage();
483private String GetInvalidSyntaxMessage()
485String lastProcessedTag = null;
497String m_name = null;
498String m_value = null;
503internal ConfigNode(String name, ConfigNode parent)
509internal String Name
514internal String Value
541internal int AddAttribute(String key, String value)
547internal void ReplaceAttribute(int index, String key, String value)
system\char.cs (27)
150public override String ToString() {
151Contract.Ensures(Contract.Result<String>() != null);
156public String ToString(IFormatProvider provider) {
157Contract.Ensures(Contract.Result<String>() != null);
170public static String ToString(char c) {
171Contract.Ensures(Contract.Result<String>() != null);
175public static char Parse(String s) {
187public static bool TryParse(String s, out Char result) {
516public static bool IsControl(String s, int index) {
531public static bool IsDigit(String s, int index)
546public static bool IsLetter(String s, int index)
565public static bool IsLetterOrDigit(String s, int index)
580public static bool IsLower(String s, int index)
624public static bool IsNumber(String s, int index)
650public static bool IsPunctuation (String s, int index)
695public static bool IsSeparator(String s, int index)
717public static bool IsSurrogate(String s, int index)
752public static bool IsSymbol(String s, int index)
767public static bool IsUpper(String s, int index)
786public static bool IsWhiteSpace(String s, int index)
810public static UnicodeCategory GetUnicodeCategory(String s, int index)
829public static double GetNumericValue(String s, int index)
850public static bool IsHighSurrogate(String s, int index) {
870public static bool IsLowSurrogate(String s, int index) {
885public static bool IsSurrogatePair(String s, int index) {
921public static String ConvertFromUtf32(int utf32)
966public static int ConvertToUtf32(String s, int index) {
system\console.cs (17)
1150__Error.WinIOError(errorCode, String.Empty);
1299__Error.WinIOError(errorCode, String.Empty);
1380public static String Title {
1390__Error.WinIOError(r, String.Empty);
1982public static String ReadLine()
2082public static void WriteLine(String value)
2090public static void WriteLine(String format, Object arg0)
2097public static void WriteLine(String format, Object arg0, Object arg1)
2104public static void WriteLine(String format, Object arg0, Object arg1, Object arg2)
2112public static void WriteLine(String format, Object arg0, Object arg1, Object arg2,Object arg3, __arglist)
2141public static void WriteLine(String format, params Object[] arg)
2151public static void Write(String format, Object arg0)
2158public static void Write(String format, Object arg0, Object arg1)
2165public static void Write(String format, Object arg0, Object arg1, Object arg2)
2173public static void Write(String format, Object arg0, Object arg1, Object arg2, Object arg3, __arglist)
2202public static void Write(String format, params Object[] arg)
2298public static void Write(String value)
system\convert.cs (51)
134(RuntimeType)typeof(String)
441public static bool ToBoolean(String value) {
447public static bool ToBoolean(String value, IFormatProvider provider) {
547public static char ToChar(String value) {
551public static char ToChar(String value, IFormatProvider provider) {
686public static sbyte ToSByte(String value) {
693public static sbyte ToSByte(String value, IFormatProvider provider) {
788public static byte ToByte(String value) {
794public static byte ToByte(String value, IFormatProvider provider) {
887public static short ToInt16(String value) {
893public static short ToInt16(String value, IFormatProvider provider) {
1000public static ushort ToUInt16(String value) {
1007public static ushort ToUInt16(String value, IFormatProvider provider) {
1112public static int ToInt32(String value) {
1118public static int ToInt32(String value, IFormatProvider provider) {
1228public static uint ToUInt32(String value) {
1235public static uint ToUInt32(String value, IFormatProvider provider) {
1326public static long ToInt64(String value, IFormatProvider provider) {
1427public static ulong ToUInt64(String value) {
1434public static ulong ToUInt64(String value, IFormatProvider provider) {
1511public static float ToSingle(String value) {
1517public static float ToSingle(String value, IFormatProvider provider) {
1600public static double ToDouble(String value) {
1606public static double ToDouble(String value, IFormatProvider provider) {
1682public static decimal ToDecimal(String value) {
1688public static Decimal ToDecimal(String value, IFormatProvider provider) {
1724public static DateTime ToDateTime(String value) {
1730public static DateTime ToDateTime(String value, IFormatProvider provider) {
1808return value == null? String.Empty: value.ToString();
1959public static String ToString(String value) {
1964public static String ToString(String value,IFormatProvider provider) {
1977public static byte ToByte (String value, int fromBase) {
1993public static sbyte ToSByte (String value, int fromBase) {
2011public static short ToInt16 (String value, int fromBase) {
2030public static ushort ToUInt16 (String value, int fromBase) {
2045public static int ToInt32 (String value, int fromBase) {
2058public static uint ToUInt32 (String value, int fromBase) {
2070public static long ToInt64 (String value, int fromBase) {
2083public static ulong ToUInt64 (String value, int fromBase) {
2093public static String ToString (byte value, int toBase) {
2103public static String ToString (short value, int toBase) {
2113public static String ToString (int value, int toBase) {
2123public static String ToString (long value, int toBase) {
2131public static String ToBase64String(byte[] inArray) {
2141public static String ToBase64String(byte[] inArray, Base64FormattingOptions options) {
2150public static String ToBase64String(byte[] inArray, int offset, int length) {
2156public static unsafe String ToBase64String(byte[] inArray, int offset, int length, Base64FormattingOptions options) {
2177return String.Empty;
2345public static Byte[] FromBase64String(String s) {
system\datetime.cs (43)
129private const String TicksField = "ticks";
130private const String DateDataField = "dateData";
1293public static DateTime Parse(String s) {
1301public static DateTime Parse(String s, IFormatProvider provider) {
1305public static DateTime Parse(String s, IFormatProvider provider, DateTimeStyles styles) {
1314public static DateTime ParseExact(String s, String format, IFormatProvider provider) {
1322public static DateTime ParseExact(String s, String format, IFormatProvider provider, DateTimeStyles style) {
1327public static DateTime ParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style) {
1422public String ToLongDateString() {
1423Contract.Ensures(Contract.Result<String>() != null);
1427public String ToLongTimeString() {
1428Contract.Ensures(Contract.Result<String>() != null);
1432public String ToShortDateString() {
1433Contract.Ensures(Contract.Result<String>() != null);
1437public String ToShortTimeString() {
1438Contract.Ensures(Contract.Result<String>() != null);
1442public override String ToString() {
1443Contract.Ensures(Contract.Result<String>() != null);
1447public String ToString(String format) {
1448Contract.Ensures(Contract.Result<String>() != null);
1452public String ToString(IFormatProvider provider) {
1453Contract.Ensures(Contract.Result<String>() != null);
1457public String ToString(String format, IFormatProvider provider) {
1458Contract.Ensures(Contract.Result<String>() != null);
1466public static Boolean TryParse(String s, out DateTime result) {
1470public static Boolean TryParse(String s, IFormatProvider provider, DateTimeStyles styles, out DateTime result) {
1475public static Boolean TryParseExact(String s, String format, IFormatProvider provider, DateTimeStyles style, out DateTime result) {
1480public static Boolean TryParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style, out DateTime result) {
1535public String[] GetDateTimeFormats()
1537Contract.Ensures(Contract.Result<String[]>() != null);
1544public String[] GetDateTimeFormats(IFormatProvider provider)
1546Contract.Ensures(Contract.Result<String[]>() != null);
1554public String[] GetDateTimeFormats(char format)
1556Contract.Ensures(Contract.Result<String[]>() != null);
1563public String[] GetDateTimeFormats(char format, IFormatProvider provider)
1565Contract.Ensures(Contract.Result<String[]>() != null);
system\datetimeoffset.cs (26)
592public static DateTimeOffset Parse(String input) {
605public static DateTimeOffset Parse(String input, IFormatProvider formatProvider) {
609public static DateTimeOffset Parse(String input, IFormatProvider formatProvider, DateTimeStyles styles) {
623public static DateTimeOffset ParseExact(String input, String format, IFormatProvider formatProvider) {
631public static DateTimeOffset ParseExact(String input, String format, IFormatProvider formatProvider, DateTimeStyles styles) {
642public static DateTimeOffset ParseExact(String input, String[] formats, IFormatProvider formatProvider, DateTimeStyles styles) {
703public override String ToString() {
704Contract.Ensures(Contract.Result<String>() != null);
708public String ToString(String format) {
709Contract.Ensures(Contract.Result<String>() != null);
713public String ToString(IFormatProvider formatProvider) {
714Contract.Ensures(Contract.Result<String>() != null);
718public String ToString(String format, IFormatProvider formatProvider) {
719Contract.Ensures(Contract.Result<String>() != null);
727public static Boolean TryParse(String input, out DateTimeOffset result) {
739public static Boolean TryParse(String input, IFormatProvider formatProvider, DateTimeStyles styles, out DateTimeOffset result) {
752public static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, DateTimeStyles styles,
767public static Boolean TryParseExact(String input, String[] formats, IFormatProvider formatProvider, DateTimeStyles styles,
810private static DateTimeStyles ValidateStyles(DateTimeStyles style, String parameterName) {
system\delegate.cs (9)
47protected Delegate(Object target,String method)
72protected unsafe Delegate(Type target,String method)
342public static Delegate CreateDelegate(Type type, Object target, String method)
348public static Delegate CreateDelegate(Type type, Object target, String method, bool ignoreCase)
372public static Delegate CreateDelegate(Type type, Object target, String method, bool ignoreCase, bool throwOnBindFailure)
420public static Delegate CreateDelegate(Type type, Type target, String method)
426public static Delegate CreateDelegate(Type type, Type target, String method, bool ignoreCase)
433public static Delegate CreateDelegate(Type type, Type target, String method, bool ignoreCase, bool throwOnBindFailure)
728private extern bool BindToMethodName(Object target, RuntimeType methodType, String method, DelegateBindingFlags flags);
system\diagnostics\assert.cs (18)
34internal static void Check(bool condition, String conditionString, String message)
43internal static void Check(bool condition, String conditionString, String message, int exitCode)
53internal static void Fail(String conditionString, String message)
60internal static void Fail(String conditionString, String message, String windowTitle, int exitCode)
67internal static void Fail(String conditionString, String message, int exitCode, StackTrace.TraceFormat stackTraceFormat)
75internal static void Fail(String conditionString, String message, String windowTitle, int exitCode, StackTrace.TraceFormat stackTraceFormat, int numStackFramesToSkip)
125internal extern static int ShowDefaultAssertDialog(String conditionString, String message, String stackTrace, String windowTitle);
system\diagnostics\contracts\contracts.cs (40)
198private String _publicName;
200public ContractPublicPropertyNameAttribute(String name)
205public String Name {
236private String _category;
237private String _setting;
239private String _value;
241public ContractOptionAttribute(String category, String setting, bool enabled)
248public ContractOptionAttribute(String category, String setting, String value)
255public String Category {
259public String Setting {
267public String Value {
324public static void Assume(bool condition, String userMessage)
362public static void Assert(bool condition, String userMessage)
406public static void Requires(bool condition, String userMessage)
448public static void Requires<TException>(bool condition, String userMessage) where TException : Exception
491public static void Ensures(bool condition, String userMessage)
534public static void EnsuresOnThrow<TException>(bool condition, String userMessage) where TException : Exception
628public static void Invariant(bool condition, String userMessage)
893static partial void ReportFailure(ContractFailureKind failureKind, String userMessage, String conditionText, Exception innerException);
899static partial void AssertMustUseRewriter(ContractFailureKind kind, String contractKind);
940public static string RaiseContractFailedEvent(ContractFailureKind failureKind, String userMessage, String conditionText, Exception innerException)
952public static void TriggerFailure(ContractFailureKind kind, String displayMessage, String userMessage, String conditionText, Exception innerException)
979public static string RaiseContractFailedEvent(ContractFailureKind failureKind, String userMessage, String conditionText, Exception innerException)
981var resultFailureMessage = "Contract failed"; // default in case implementation does not assign anything.
994public static void TriggerFailure(ContractFailureKind kind, String displayMessage, String userMessage, String conditionText, Exception innerException)
1014static partial void RaiseContractFailedEventImplementation(ContractFailureKind failureKind, String userMessage, String conditionText, Exception innerException, ref string resultFailureMessage);
1019static partial void TriggerFailureImplementation(ContractFailureKind kind, String displayMessage, String userMessage, String conditionText, Exception innerException);
system\diagnostics\contracts\contractsbcl.cs (30)
58static partial void AssertMustUseRewriter(ContractFailureKind kind, String contractKind)
81String simpleName = probablyNotRewritten.GetName().Name;
102static partial void ReportFailure(ContractFailureKind failureKind, String userMessage, String conditionText, Exception innerException)
109var displayMessage = System.Runtime.CompilerServices.ContractHelper.RaiseContractFailedEvent(failureKind, userMessage, conditionText, innerException);
151private String _message;
152private String _condition;
162public ContractFailedEventArgs(ContractFailureKind failureKind, String message, String condition, Exception originalException)
171public String Message { get { return _message; } }
172public String Condition { get { return _condition; } }
340static partial void RaiseContractFailedEventImplementation(ContractFailureKind failureKind, String userMessage, String conditionText, Exception innerException, ref string resultFailureMessage)
347String displayMessage = "contract failed."; // Incomplete, but in case of OOM during resource lookup...
408static partial void TriggerFailureImplementation(ContractFailureKind kind, String displayMessage, String userMessage, String conditionText, Exception innerException)
432String windowTitle = Environment.GetResourceString(GetResourceNameForFailure(kind));
438private static String GetResourceNameForFailure(ContractFailureKind failureKind)
440String resourceName = null;
478private static String GetDisplayMessage(ContractFailureKind failureKind, String userMessage, String conditionText)
480String resourceName = GetResourceNameForFailure(failureKind);
487String failureMessage;
488if (!String.IsNullOrEmpty(conditionText)) {
497if (!String.IsNullOrEmpty(userMessage))
520private static void TriggerCodeContractEscalationPolicy(ContractFailureKind failureKind, String message, String conditionText, Exception innerException)
522String exceptionAsString = null;
system\diagnostics\eventing\frameworkeventsource.cs (122)
202public void ResourceManagerLookupStarted(String baseName, String mainAssemblyName, String cultureName) {
207public void ResourceManagerLookingForResourceSet(String baseName, String mainAssemblyName, String cultureName) {
213public void ResourceManagerFoundResourceSetInCache(String baseName, String mainAssemblyName, String cultureName) {
222public void ResourceManagerFoundResourceSetInCacheUnexpected(String baseName, String mainAssemblyName, String cultureName) {
229public void ResourceManagerStreamFound(String baseName, String mainAssemblyName, String cultureName, String loadedAssemblyName, String resourceFileName) {
236public void ResourceManagerStreamNotFound(String baseName, String mainAssemblyName, String cultureName, String loadedAssemblyName, String resourceFileName) {
242public void ResourceManagerGetSatelliteAssemblySucceeded(String baseName, String mainAssemblyName, String cultureName, String assemblyName) {
248public void ResourceManagerGetSatelliteAssemblyFailed(String baseName, String mainAssemblyName, String cultureName, String assemblyName) {
254public void ResourceManagerCaseInsensitiveResourceStreamLookupSucceeded(String baseName, String mainAssemblyName, String assemblyName, String resourceFileName) {
260public void ResourceManagerCaseInsensitiveResourceStreamLookupFailed(String baseName, String mainAssemblyName, String assemblyName, String resourceFileName) {
267public void ResourceManagerManifestResourceAccessDenied(String baseName, String mainAssemblyName, String assemblyName, String canonicalName) {
274public void ResourceManagerNeutralResourcesSufficient(String baseName, String mainAssemblyName, String cultureName) {
280public void ResourceManagerNeutralResourceAttributeMissing(String mainAssemblyName) {
286public void ResourceManagerCreatingResourceSet(String baseName, String mainAssemblyName, String cultureName, String fileName) {
292public void ResourceManagerNotCreatingResourceSet(String baseName, String mainAssemblyName, String cultureName) {
298public void ResourceManagerLookupFailed(String baseName, String mainAssemblyName, String cultureName) {
304public void ResourceManagerReleasingResources(String baseName, String mainAssemblyName) {
310public void ResourceManagerNeutralResourcesNotFound(String baseName, String mainAssemblyName, String resName) {
316public void ResourceManagerNeutralResourcesFound(String baseName, String mainAssemblyName, String resName) {
322public void ResourceManagerAddingCultureFromConfigFile(String baseName, String mainAssemblyName, String cultureName) {
328public void ResourceManagerCultureNotFoundInConfigFile(String baseName, String mainAssemblyName, String cultureName) {
334public void ResourceManagerCultureFoundInConfigFile(String baseName, String mainAssemblyName, String cultureName) {
343public void ResourceManagerLookupStarted(String baseName, Assembly mainAssembly, String cultureName) {
349public void ResourceManagerLookingForResourceSet(String baseName, Assembly mainAssembly, String cultureName) {
355public void ResourceManagerFoundResourceSetInCache(String baseName, Assembly mainAssembly, String cultureName) {
361public void ResourceManagerFoundResourceSetInCacheUnexpected(String baseName, Assembly mainAssembly, String cultureName) {
367public void ResourceManagerStreamFound(String baseName, Assembly mainAssembly, String cultureName, Assembly loadedAssembly, String resourceFileName) {
373public void ResourceManagerStreamNotFound(String baseName, Assembly mainAssembly, String cultureName, Assembly loadedAssembly, String resourceFileName) {
379public void ResourceManagerGetSatelliteAssemblySucceeded(String baseName, Assembly mainAssembly, String cultureName, String assemblyName) {
385public void ResourceManagerGetSatelliteAssemblyFailed(String baseName, Assembly mainAssembly, String cultureName, String assemblyName) {
391public void ResourceManagerCaseInsensitiveResourceStreamLookupSucceeded(String baseName, Assembly mainAssembly, String assemblyName, String resourceFileName) {
397public void ResourceManagerCaseInsensitiveResourceStreamLookupFailed(String baseName, Assembly mainAssembly, String assemblyName, String resourceFileName) {
403public void ResourceManagerManifestResourceAccessDenied(String baseName, Assembly mainAssembly, String assemblyName, String canonicalName) {
409public void ResourceManagerNeutralResourcesSufficient(String baseName, Assembly mainAssembly, String cultureName) {
421public void ResourceManagerCreatingResourceSet(String baseName, Assembly mainAssembly, String cultureName, String fileName) {
427public void ResourceManagerNotCreatingResourceSet(String baseName, Assembly mainAssembly, String cultureName) {
433public void ResourceManagerLookupFailed(String baseName, Assembly mainAssembly, String cultureName) {
439public void ResourceManagerReleasingResources(String baseName, Assembly mainAssembly) {
445public void ResourceManagerNeutralResourcesNotFound(String baseName, Assembly mainAssembly, String resName) {
451public void ResourceManagerNeutralResourcesFound(String baseName, Assembly mainAssembly, String resName) {
457public void ResourceManagerAddingCultureFromConfigFile(String baseName, Assembly mainAssembly, String cultureName) {
463public void ResourceManagerCultureNotFoundInConfigFile(String baseName, Assembly mainAssembly, String cultureName) {
469public void ResourceManagerCultureFoundInConfigFile(String baseName, Assembly mainAssembly, String cultureName) {
system\diagnostics\log.cs (22)
28String message,
129public static void LogMessage(LoggingLevels level, String message)
140public static void LogMessage(LoggingLevels level, LogSwitch logswitch, String message)
170public static void Trace(LogSwitch logswitch, String message)
175public static void Trace(String switchname, String message)
182public static void Trace(String message)
187public static void Status(LogSwitch logswitch, String message)
192public static void Status(String switchname, String message)
199public static void Status(String message)
204public static void Warning(LogSwitch logswitch, String message)
209public static void Warning(String switchname, String message)
216public static void Warning(String message)
221public static void Error(LogSwitch logswitch, String message)
226public static void Error(String switchname, String message)
234public static void Error(String message)
239public static void Panic(String message)
253internal static extern void ModifyLogSwitch (int iNewLevel, String strSwitchName, String strParentName);
system\double.cs (19)
212public override String ToString() {
213Contract.Ensures(Contract.Result<String>() != null);
218public String ToString(String format) {
219Contract.Ensures(Contract.Result<String>() != null);
224public String ToString(IFormatProvider provider) {
225Contract.Ensures(Contract.Result<String>() != null);
230public String ToString(String format, IFormatProvider provider) {
231Contract.Ensures(Contract.Result<String>() != null);
235public static double Parse(String s) {
239public static double Parse(String s, NumberStyles style) {
244public static double Parse(String s, IFormatProvider provider) {
248public static double Parse(String s, NumberStyles style, IFormatProvider provider) {
261private static double Parse(String s, NumberStyles style, NumberFormatInfo info) {
265public static bool TryParse(String s, out double result) {
269public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out double result) {
274private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out double result) {
281String sTrim = s.Trim();
system\enum.cs (33)
23private const String enumSeperator = ", ";
35String[] names = null;
50private static String InternalFormattedHexString(Object value)
134private static String InternalFormat(RuntimeType eT, Object value)
141String retval = GetName(eT, value);
154private static String InternalFlagsFormat(RuntimeType eT, Object value)
163String[] names = entry.Names;
333public static bool TryParse<TEnum>(String value, out TEnum result) where TEnum : struct
338public static bool TryParse<TEnum>(String value, bool ignoreCase, out TEnum result) where TEnum : struct
351public static Object Parse(Type enumType, String value)
357public static Object Parse(Type enumType, String value, bool ignoreCase)
367private static bool TryParseEnum(Type enumType, String value, bool ignoreCase, ref EnumResult parseResult)
423String[] values = value.Split(enumSeperatorCharArray);
429String[] enumNames = entry.Names;
442if (String.Compare(enumNames[j], values[i], StringComparison.OrdinalIgnoreCase) != 0)
512public static String GetName(Type enumType, Object value)
522public static String[] GetNames(Type enumType)
526Contract.Ensures(Contract.Result<String[]>() != null);
532internal static String[] InternalGetNames(RuntimeType enumType)
606public static String Format(Type enumType, Object value, String format)
678public ValuesAndNames(ulong[] values, String[] names)
685public String[] Names;
795public override String ToString()
808public String ToString(String format, IFormatProvider provider)
851public String ToString(String format) {
855if (String.Compare(format, "G", StringComparison.OrdinalIgnoreCase) == 0)
858if (String.Compare(format, "D", StringComparison.OrdinalIgnoreCase) == 0)
861if (String.Compare(format, "X", StringComparison.OrdinalIgnoreCase) == 0)
864if (String.Compare(format, "F", StringComparison.OrdinalIgnoreCase) == 0)
871public String ToString(IFormatProvider provider)
system\environment.cs (67)
61internal ResourceHelper(String name) {
65private String m_name;
84public String m_key;
86public String m_retVal;
89public GetResourceStringUserData(ResourceHelper resourceHelper, String key, CultureInfo culture)
98internal String GetResourceString(String key) {
108internal String GetResourceString(String key, CultureInfo culture) {
151String key = userData.m_key;
176String message = "Infinite recursion during resource lookup within mscorlib. This may be a bug in mscorlib, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names. Resource name: " + key;
210String s = rh.SystemResMgr.GetString(key, null);
314public static extern void FailFast(String message);
319internal static extern void FailFast(String message, uint exitCode);
337public static extern void FailFast(String message, Exception exception);
345internal static extern void TriggerCodeContractFailure(ContractFailureKind failureKind, String message, String condition, String exceptionAsString);
359public static String CommandLine {
364String commandLine = null;
383public static String CurrentDirectory
402public static String SystemDirectory {
415String path = sb.ToString();
429internal static String InternalWindowsDirectory {
438String path = sb.ToString();
445public static String ExpandEnvironmentVariables(String name)
470String[] varArray = name.Split(new char[] {'%'});
492String envVar = "%" + varArray[i] + "%";
508String temp = blob.ToString();
541public static String MachineName {
586public static String[] GetCommandLineArgs() {
594private static extern String[] GetCommandLineArgsNative();
603internal static extern String nativeGetEnvironmentVariable(String variable);
615public static String GetEnvironmentVariable(String variable)
743String.wstrcpy(pBlock, pStrings, len);
810String key = new String(block, startKey, i-startKey);
818String value = new String(block, startValue, i-startValue);
898if (String.IsNullOrEmpty(value) || value[0] == '\0') {
977if (String.IsNullOrEmpty(value) || value[0] == '\0') {
1034public static String[] GetLogicalDrives() {
1046String[] result = new String[count];
1067public static String NewLine {
1069Contract.Ensures(Contract.Result<String>() != null);
1230public static String StackTrace {
1233Contract.Ensures(Contract.Result<String>() != null);
1243internal static String GetStackTrace(Exception e, bool needFileInfo)
1288internal extern static String GetResourceFromDefault(String key);
1299internal static String GetResourceStringLocal(String key) {
1321internal static String GetResourceString(String key) {
1331internal static String GetResourceString(String key, params Object[] values) {
1332String s = GetResourceString(key);
1333return String.Format(CultureInfo.CurrentCulture, s, values);
1340internal static String GetRuntimeResourceString(String key) {
1345internal static String GetRuntimeResourceString(String key, params Object[] values) {
1403return String.Empty;
1511String s;
1530s = String.Empty;
system\exception.cs (35)
65public Exception(String message) {
75public Exception (String message, Exception innerException) {
97_exceptionMethodString = (String)(info.GetValue("ExceptionMethod",typeof(String)));
136public virtual String Message {
314public virtual String StackTrace
363String tempStackTraceString = Environment.GetStackTrace(this, needFileInfo);
377public virtual String HelpLink
389public virtual String Source {
430public override String ToString()
438private String ToString(bool needFileLineInfo, bool needMessage) {
439String message = (needMessage ? Message : null);
440String s;
465private String GetExceptionMethodString() {
520String[] args = _exceptionMethodString.Split(new char[]{'\0', '\n'});
526si.AddValue("Name", args[1], typeof(String));
527si.AddValue("AssemblyName", args[2], typeof(String));
557String tempStackTraceString = _stackTraceString;
576info.AddValue("ClassName", GetClassName(), typeof(String));
577info.AddValue("Message", _message, typeof(String));
580info.AddValue("HelpURL", _helpURL, typeof(String));
581info.AddValue("StackTraceString", tempStackTraceString, typeof(String));
582info.AddValue("RemoteStackTraceString", _remoteStackTraceString, typeof(String));
584info.AddValue("ExceptionMethod", GetExceptionMethodString(), typeof(String));
586info.AddValue("Source", _source, typeof(String));
615String tmp = null;
854private String _className; //Needed for serialization.
856private String _exceptionMethodString; //Needed for serialization.
857internal String _message;
860private String _helpURL;
864private String _stackTraceString; //Needed for serialization.
865private String _remoteStackTraceString;
890private String _source; // Mainly used by VB.
911internal virtual String InternalToString()
982internal static String GetMessageFromNativeResources(ExceptionMessageKind kind)
system\globalization\calendardata.cs (62)
41internal String sNativeName ; // Calendar Name for the locale
44internal String[] saShortDates ; // Short Data format, default first
45internal String[] saYearMonths ; // Year/Month Data format, default first
46internal String[] saLongDates ; // Long Data format, default first
47internal String sMonthDay ; // Month/Day format
50internal String[] saEraNames ; // Names of Eras
51internal String[] saAbbrevEraNames ; // Abbreviated Era Names
52internal String[] saAbbrevEnglishEraNames ; // Abbreviated Era Names in English
53internal String[] saDayNames ; // Day Names, null to use locale data, starts on Sunday
54internal String[] saAbbrevDayNames ; // Abbrev Day Names, null to use locale data, starts on Sunday
55internal String[] saSuperShortDayNames ; // Super short Day of week names
56internal String[] saMonthNames ; // Month Names (13)
57internal String[] saAbbrevMonthNames ; // Abbrev Month Names (13)
58internal String[] saMonthGenitiveNames ; // Genitive Month Names (13)
59internal String[] saAbbrevMonthGenitiveNames; // Genitive Abbrev Month Names (13)
60internal String[] saLeapYearMonthNames ; // Multiple strings for the month names in a leap year.
92invariant.saShortDates = new String[] { "MM/dd/yyyy", "yyyy-MM-dd" }; // short date format
93invariant.saLongDates = new String[] { "dddd, dd MMMM yyyy"}; // long date format
94invariant.saYearMonths = new String[] { "yyyy MMMM" }; // year month format
98invariant.saEraNames = new String[] { "A.D." }; // Era names
99invariant.saAbbrevEraNames = new String[] { "AD" }; // Abbreviated Era names
100invariant.saAbbrevEnglishEraNames=new String[] { "AD" }; // Abbreviated era names in English
101invariant.saDayNames = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };// day names
102invariant.saAbbrevDayNames = new String[] { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; // abbreviated day names
103invariant.saSuperShortDayNames = new String[] { "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" }; // The super short day names
104invariant.saMonthNames = new String[] { "January", "February", "March", "April", "May", "June",
105"July", "August", "September", "October", "November", "December", String.Empty}; // month names
106invariant.saAbbrevMonthNames = new String[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
107"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", String.Empty}; // abbreviated month names
123internal CalendarData(String localeName, int calendarId, bool bUseUserOverrides)
133if (this.sNativeName == null) this.sNativeName = String.Empty; // Calendar Name for the locale.
170this.sNativeName = String.Empty;
175if (this.saMonthGenitiveNames == null || String.IsNullOrEmpty(this.saMonthGenitiveNames[0]))
177if (this.saAbbrevMonthGenitiveNames == null || String.IsNullOrEmpty(this.saAbbrevMonthGenitiveNames[0]))
179if (this.saLeapYearMonthNames == null || String.IsNullOrEmpty(this.saLeapYearMonthNames[0]))
194this.saAbbrevEnglishEraNames = new String[] { "" };
210if (this.saEraNames == null || this.saEraNames.Length == 0 || String.IsNullOrEmpty(this.saEraNames[0]))
212this.saEraNames = new String[] { "A.D." };
219this.saEraNames = new String[] { "A.D." };
222this.saEraNames = new String[] { "C.E." };
229this.saEraNames = new String[] { "\x0780\x07a8\x0796\x07b0\x0783\x07a9" };
233this.saEraNames = new String[] { "\x0628\x0639\x062F \x0627\x0644\x0647\x062C\x0631\x0629" };
240this.saEraNames = new String[] { "\x0645" };
244this.saEraNames = new String[] { "ap. J.-C." };
253this.saEraNames = new String[] { "\x4e2d\x83ef\x6c11\x570b" };
257this.saEraNames = new String[] { String.Empty };
262this.saEraNames = new String[] { "\xb2e8\xae30" };
266this.saEraNames = new String[] { "\x0e1e\x002e\x0e28\x002e" };
275if (this.saEraNames == null || this.saEraNames.Length == 0 || String.IsNullOrEmpty(this.saEraNames[0]))
277this.saEraNames = new String[] { "\x0647\x002e\x0634" };
296if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || String.IsNullOrEmpty(this.saAbbrevEraNames[0]))
298this.saAbbrevEraNames = new String[] { "AD" };
305this.saAbbrevEraNames = new String[] { "AD" };
316this.saAbbrevEraNames = new String[] { "\x0780\x002e" };
320this.saAbbrevEraNames = new String[] { "\x0647\x0640" };
325this.saAbbrevEraNames = new String[1];
337if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || String.IsNullOrEmpty(this.saAbbrevEraNames[0]))
361String culture = CalendarIdToCultureName(calendarId);
370private static String CalendarIdToCultureName(int calendarId)
458private static extern bool nativeGetCalendarData(CalendarData data, String localeName, int calendar);
464internal static extern int nativeGetCalendars(String localeName, bool useUserOverride, [In, Out] int[] calendars);
system\globalization\charunicodeinfo.cs (11)
75internal const String UNICODE_INFO_FILE_NAME = "charinfo.nlp";
150internal static int InternalConvertToUtf32(String s, int index) {
188internal static int InternalConvertToUtf32(String s, int index, out int charLength) {
215internal static bool IsWhiteSpace(String s, int index)
332public static double GetNumericValue(String s, int index) {
367public static int GetDecimalDigitValue(String s, int index) {
404public static int GetDigitValue(String s, int index) {
420public static UnicodeCategory GetUnicodeCategory(String s, int index)
473internal static BidiCategory GetBidiCategory(String s, int index) {
496internal static UnicodeCategory InternalGetUnicodeCategory(String value, int index) {
510internal static UnicodeCategory InternalGetUnicodeCategory(String str, int index, out int charLength) {
system\globalization\compareinfo.cs (84)
101private String m_name; // The name used to construct this CompareInfo
104private String m_sortName; // The name that defines our behavior
170public static CompareInfo GetCompareInfo(String name, Assembly assembly){
216public static CompareInfo GetCompareInfo(String name)
234public static bool IsSortable(String text) {
325public virtual String Name
402public virtual int Compare(String string1, String string2)
408public unsafe virtual int Compare(String string1, String string2, CompareOptions options){
412return String.Compare(string1, string2, StringComparison.OrdinalIgnoreCase);
422return String.CompareOrdinal(string1, string2);
459public unsafe virtual int Compare(String string1, int offset1, int length1, String string2, int offset2, int length2)
465public unsafe virtual int Compare(String string1, int offset1, String string2, int offset2, CompareOptions options)
472public unsafe virtual int Compare(String string1, int offset1, String string2, int offset2)
479public unsafe virtual int Compare(String string1, int offset1, int length1, String string2, int offset2, int length2, CompareOptions options)
483int result = String.Compare(string1, offset1, string2, offset2, length1<length2 ? length1 : length2, StringComparison.OrdinalIgnoreCase);
549int result = String.nativeCompareOrdinalEx(string1, offset1, string2, offset2,
569public unsafe virtual bool IsPrefix(String source, String prefix, CompareOptions options)
607public virtual bool IsPrefix(String source, String prefix)
624public unsafe virtual bool IsSuffix(String source, String suffix, CompareOptions options)
659public virtual bool IsSuffix(String source, String suffix)
678public unsafe virtual int IndexOf(String source, char value)
688public unsafe virtual int IndexOf(String source, String value)
698public unsafe virtual int IndexOf(String source, char value, CompareOptions options)
708public unsafe virtual int IndexOf(String source, String value, CompareOptions options)
718public unsafe virtual int IndexOf(String source, char value, int startIndex)
728public unsafe virtual int IndexOf(String source, String value, int startIndex)
738public unsafe virtual int IndexOf(String source, char value, int startIndex, CompareOptions options)
748public unsafe virtual int IndexOf(String source, String value, int startIndex, CompareOptions options)
758public unsafe virtual int IndexOf(String source, char value, int startIndex, int count)
764public unsafe virtual int IndexOf(String source, String value, int startIndex, int count)
772public unsafe virtual int IndexOf(String source, char value, int startIndex, int count, CompareOptions options)
806public unsafe virtual int IndexOf(String source, String value, int startIndex, int count, CompareOptions options)
871public unsafe virtual int LastIndexOf(String source, char value)
883public virtual int LastIndexOf(String source, String value)
895public virtual int LastIndexOf(String source, char value, CompareOptions options)
906public unsafe virtual int LastIndexOf(String source, String value, CompareOptions options)
918public unsafe virtual int LastIndexOf(String source, char value, int startIndex)
924public unsafe virtual int LastIndexOf(String source, String value, int startIndex)
930public unsafe virtual int LastIndexOf(String source, char value, int startIndex, CompareOptions options)
936public unsafe virtual int LastIndexOf(String source, String value, int startIndex, CompareOptions options)
942public unsafe virtual int LastIndexOf(String source, char value, int startIndex, int count)
948public unsafe virtual int LastIndexOf(String source, String value, int startIndex, int count)
957public unsafe virtual int LastIndexOf(String source, char value, int startIndex, int count, CompareOptions options)
1007public unsafe virtual int LastIndexOf(String source, String value, int startIndex, int count, CompareOptions options)
1069public unsafe virtual SortKey GetSortKey(String source, CompareOptions options)
1075public unsafe virtual SortKey GetSortKey(String source)
1081private SortKey CreateSortKey(String source, CompareOptions options)
1100if (String.IsNullOrEmpty(source))
1131source = String.Empty; // back to original
1275public override String ToString()
1291internal static IntPtr InternalInitSortHandle(String localeName, out IntPtr handleOrigin)
1342private static extern bool InternalGetNlsVersionEx(IntPtr handle, IntPtr handleOrigin, String localeName, ref Win32Native.NlsVersionInfoEx lpNlsVersionInformation);
1355private static extern IntPtr NativeInternalInitSortHandle(String localeName, out IntPtr handleOrigin);
1370private static extern bool InternalIsSortable(IntPtr handle, IntPtr handleOrigin, String localeName, String source, int length);
1377private static extern int InternalCompareString(IntPtr handle, IntPtr handleOrigin, String localeName, String string1, int offset1, int length1,
1378String string2, int offset2, int length2, int flags);
1386private static extern int InternalFindNLSStringEx(IntPtr handle, IntPtr handleOrigin, String localeName, int flags, String source, int sourceCount, int startIndex, string target, int targetCount);
1393private static extern int InternalGetSortKey(IntPtr handle, IntPtr handleOrigin, String localeName, int flags, String source, int sourceCount, byte[] target, int targetCount);
system\globalization\culturedata.cs (166)
72private String sRealName; // Name you passed in (ie: en-US, en, or de-DE_phoneb)
73private String sWindowsName; // Name OS thinks the object is (ie: de-DE_phoneb, or en-US (even if en was passed in))
76private String sName; // locale name (ie: en-us, NO sort info, but could be neutral)
77private String sParent; // Parent name (which may be a custom locale/culture)
78private String sLocalizedDisplayName; // Localized pretty name for this locale
79private String sEnglishDisplayName; // English pretty name for this locale
80private String sNativeDisplayName; // Native pretty name for this locale
81private String sSpecificCulture; // The culture name to be used in CultureInfo.CreateSpecificCulture(), en-US form if neutral, sort name if sort
84private String sISO639Language; // ISO 639 Language Name
85private String sLocalizedLanguage; // Localized name for this language
86private String sEnglishLanguage; // English name for this language
87private String sNativeLanguage; // Native name of this language
90private String sRegionName; // (RegionInfo)
93private String sLocalizedCountry; // localized country name
94private String sEnglishCountry; // english country name (RegionInfo)
95private String sNativeCountry; // native country name
96private String sISO3166CountryName; // ISO 3166 (RegionInfo), ie: US
99private String sPositiveSign; // (user can override) positive sign
100private String sNegativeSign; // (user can override) negative sign
101private String[] saNativeDigits; // (user can override) native characters for digits 0-9
108private String sDecimalSeparator; // (user can override) decimal separator
109private String sThousandSeparator; // (user can override) thousands separator
110private String sNaN; // Not a Number
111private String sPositiveInfinity; // + Infinity
112private String sNegativeInfinity; // - Infinity
117private String sPercent; // Percent (%) symbol
118private String sPerMille; // PerMille (‰) symbol
121private String sCurrency; // (user can override) local monetary symbol
122private String sIntlMonetarySymbol; // international monetary symbol (RegionInfo)
123private String sEnglishCurrency; // English name for this currency
124private String sNativeCurrency; // Native name for this currency
130private String sMonetaryDecimal; // (user can override) monetary decimal separator
131private String sMonetaryThousand; // (user can override) monetary thousands separator
135private String sListSeparator; // (user can override) list separator
139private String sAM1159; // (user can override) AM designator
140private String sPM2359; // (user can override) PM designator
141private String sTimeSeparator;
142private volatile String[] saLongTimes; // (user can override) time format
143private volatile String[] saShortTimes; // short time format
144private volatile String[] saDurationFormats; // time duration format
161private String sTextInfo; // Text info name to use for custom
162private String sCompareInfo; // Compare info name (including sorting key) to use if custom
163private String sScripts; // Typical Scripts for this locale (latn;cyrl; etc)
174private String sAbbrevLang; // abbreviated language name (Windows Language Name) ex: ENU
175private String sAbbrevCountry; // abbreviated country name (RegionInfo) (Windows Region Name) ex: USA
176private String sISO639Language2; // 3 char ISO 639 lang name 2 ex: eng
177private String sISO3166CountryName2; // 3 char ISO 3166 country name 2 2(RegionInfo) ex: USA (ISO)
179private String sConsoleFallbackName; // The culture name for the console fallback UI culture
180private String sKeyboardsToInstall; // Keyboard installation string.
181private String fontSignature; // Font signature (16 WORDS)
404 invariant.saNativeDigits = new String[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; // native characters for digits 0-9
444 invariant.saLongTimes = new String[] { "HH:mm:ss" }; // time format
445 invariant.saShortTimes = new String[] { "HH:mm", "hh:mm tt", "H:mm", "h:mm tt" }; // short time format
446 invariant.saDurationFormats = new String[] { "HH:mm:ss" }; // time duration format
494private static bool IsResourcePresent(String resourceKey)
508private static volatile Dictionary<String, CultureData> s_cachedCultures;
511internal static CultureData GetCultureData(String cultureName, bool useUserOverride)
514if (String.IsNullOrEmpty(cultureName))
537String hashName = AnsiToLower(useUserOverride ? cultureName : cultureName + '*');
538Dictionary<String, CultureData> tempHashTable = s_cachedCultures;
542tempHashTable = new Dictionary<String, CultureData>();
735private static String s_RegionKey = @"System\CurrentControlSet\Control\Nls\RegionMapping";
740private static volatile Dictionary<String, CultureData> s_cachedRegions;
743internal static CultureData GetCultureDataForRegion(String cultureName, bool useUserOverride)
746if (String.IsNullOrEmpty(cultureName))
766String hashName = AnsiToLower(useUserOverride ? cultureName : cultureName + '*');
767Dictionary<String, CultureData> tempHashTable = s_cachedRegions;
771tempHashTable = new Dictionary<String, CultureData>();
807String specificForRegion = value.ToString();
844if (String.Compare(specifics[i].m_cultureData.SREGIONNAME, cultureName, StringComparison.OrdinalIgnoreCase) == 0)
883internal static extern String LCIDToLocaleName(int lcid);
888String localeName = null;
918if (String.IsNullOrEmpty(localeName))
976String.Format(
996String[] cultureNames = null;
1060internal static volatile String[] s_replacementCultureNames;
1072private static bool IsReplacementCultureName(String name)
1075String[] replacementCultureNames = s_replacementCultureNames;
1105internal String CultureName
1133internal String SNAME
1141this.sName = String.Empty;
1148internal String SPARENT
1181internal String SLOCALIZEDDISPLAYNAME
1189String resourceKey = "Globalization.ci_" + this.sName;
1196if (String.IsNullOrEmpty(this.sLocalizedDisplayName))
1218if (String.IsNullOrEmpty(this.sLocalizedDisplayName))
1230internal String SENGDISPLAYNAME
1258if (String.IsNullOrEmpty(this.sEnglishDisplayName))
1283internal String SNATIVEDISPLAYNAME
1322if (String.IsNullOrEmpty(this.sNativeDisplayName))
1334internal String SSPECIFICCULTURE
1349internal String SISO639LANGNAME
1364internal String SISO639LANGNAME2
1378internal String SABBREVLANGNAME
1394internal String SLOCALIZEDLANGUAGE
1406if (String.IsNullOrEmpty(this.sLocalizedLanguage))
1417internal String SENGLISHLANGUAGE
1431internal String SNATIVELANGUAGE
1468internal String SREGIONNAME
1514String resourceKey = "Globalization.ri_" + this.SREGIONNAME;
1521if (String.IsNullOrEmpty(this.sLocalizedCountry))
1528if (String.IsNullOrEmpty(this.sLocalizedDisplayName))
1539internal String SENGCOUNTRY
1553internal String SNATIVECOUNTRY
1567internal String SISO3166CTRYNAME
1582internal String SISO3166CTRYNAME2
1596internal String SABBREVCTRYNAME
1643internal String SCONSOLEFALLBACKNAME
1708internal String SNAN
1722internal String SPOSINFINITY
1736internal String SNEGINFINITY
1783internal String SPERCENT
1798internal String SPERMILLE
1817internal String SCURRENCY
1835internal String SINTLSYMBOL
1849internal String SENGLISHCURRENCY
1863internal String SNATIVECURRENCY
1923internal String SLIST
1956internal String SAM1159
1974internal String SPM2359
1992internal String[] LongTimes
2002String[] longTimes = DoEnumTimeFormats();
2019internal String[] ShortTimes
2030String[] shortTimes = DoEnumShortTimeFormats();
2168internal String[] SADURATION
2176String durationFormat = DoGetLocaleInfo(LOCALE_SDURATION);
2177this.saDurationFormats = new String[] { ReescapeWin32String(durationFormat) };
2219internal String[] ShortDates(int calendarId)
2225internal String[] LongDates(int calendarId)
2231internal String[] YearMonths(int calendarId)
2288internal String MonthDay(int calendarId)
2378internal String CalendarName(int calendarId)
2477internal String STEXTINFO // Text info name to use for text information
2512internal String SCOMPAREINFO
2563private String SSCRIPTS
2576private String SOPENTYPELANGUAGETAG
2585private String FONTSIGNATURE
2598private String SKEYBOARDSTOINSTALL
2663internal static extern int LocaleNameToLCID(String localeName);
2708return String.IsNullOrEmpty(this.SNAME);
2728internal String[] EraNames(int calendarId)
2735internal String[] AbbrevEraNames(int calendarId)
2742internal String[] AbbreviatedEnglishEraNames(int calendarId)
2754internal String TimeSeparator
2766if (String.IsNullOrEmpty(longTimeFormat))
2779internal String DateSeparator(int calendarId)
2818static private String UnescapeNlsString(String str, int start, int end)
2875static internal String ReescapeWin32String(String str)
2941static internal String[] ReescapeWin32Strings(String[] array)
2956static private String GetTimeSeparator(String format)
2971static private String GetDateSeparator(String format)
3012return String.Empty;
3077result = String.Empty;
3099String[] DoEnumTimeFormats()
3103String[] result = ReescapeWin32Strings(nativeEnumTimeFormats(this.sWindowsName, 0, UseUserOverride));
3108String[] DoEnumShortTimeFormats()
3112String[] result = ReescapeWin32Strings(nativeEnumTimeFormats(this.sWindowsName, TIME_NOSECONDS, UseUserOverride));
3263static private int[] ConvertWin32GroupString(String win32Str)
3506internal static extern bool nativeGetNumberFormatInfoValues(String localeName, NumberFormatInfo nfi, bool useUserOverride);
3511private static extern String[] nativeEnumTimeFormats(String localeName, uint dwFlags, bool useUserOverride);
system\globalization\cultureinfo.cs (44)
208String strDefault = GetDefaultLocaleName(LOCALE_USER_DEFAULT);
228String strDefault = GetUserDefaultUILanguage();
325public CultureInfo(String name) : this(name, true) {
329public CultureInfo(String name, bool useUserOverride) {
430String.Format(
579internal CultureInfo(String cultureName, String textAndCompareCultureName)
601private static CultureInfo GetCultureByName(String name, bool userOverride)
624public static CultureInfo CreateSpecificCulture(String name) {
666internal static bool VerifyCultureName(String cultureName, bool throwException)
869String strDefault = GetSystemDefaultUILanguage();
986if (String.IsNullOrEmpty(parentName))
1068public virtual String Name {
1070Contract.Ensures(Contract.Result<String>() != null);
1076this.m_nonSortName = String.Empty;
1084internal String SortName
1100public String IetfLanguageTag
1104Contract.Ensures(Contract.Result<String>() != null);
1129public virtual String DisplayName
1134Contract.Ensures(Contract.Result<String>() != null);
1150public virtual String NativeName {
1153Contract.Ensures(Contract.Result<String>() != null);
1167public virtual String EnglishName {
1170Contract.Ensures(Contract.Result<String>() != null);
1176public virtual String TwoLetterISOLanguageName {
1179Contract.Ensures(Contract.Result<String>() != null);
1186public virtual String ThreeLetterISOLanguageName {
1189Contract.Ensures(Contract.Result<String>() != null);
1202public virtual String ThreeLetterWindowsLanguageName {
1205Contract.Ensures(Contract.Result<String>() != null);
1356public override String ToString()
1358Contract.Ensures(Contract.Result<String>() != null);
1951String.Format(
1972String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_CultureIetfNotSupported"), name)
1983String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_CultureIetfNotSupported"), name)
2013internal static extern String nativeGetLocaleInfoEx(String localeName, uint field);
2018internal static extern int nativeGetLocaleInfoExInt(String localeName, uint field);
2023internal static extern bool nativeSetThreadLocale(String localeName);
2026private static String GetDefaultLocaleName(int localeType)
2047private static String GetUserDefaultUILanguage()
2054return String.Empty;
2066private static String GetSystemDefaultUILanguage()
2073return String.Empty;
system\globalization\culturenotfoundexception.cs (16)
28public CultureNotFoundException(String message)
33public CultureNotFoundException(String paramName, String message)
38public CultureNotFoundException(String message, Exception innerException)
43public CultureNotFoundException(String paramName, int invalidCultureId, String message)
49public CultureNotFoundException(String message, int invalidCultureId, Exception innerException)
56public CultureNotFoundException(String paramName, string invalidCultureName, String message)
62public CultureNotFoundException(String message, string invalidCultureName, Exception innerException)
101private static String DefaultMessage
109private String FormatedInvalidCultureId
116return String.Format(CultureInfo.InvariantCulture,
124public override String Message
128String s = base.Message;
135String valueMessage = Environment.GetResourceString("Argument_CultureInvalidIdentifier", FormatedInvalidCultureId);
system\globalization\datetimeformat.cs (39)
140internal const String RoundtripFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK";
141internal const String RoundtripDateTimeUnfixed = "yyyy'-'MM'-'ddTHH':'mm':'ss zzz";
150internal static String[] fixedNumberFormats = new String[] {
214internal static int ParseRepeatPattern(String format, int pos, char patternChar)
225private static String FormatDayOfWeek(int dayOfWeek, int repeat, DateTimeFormatInfo dtfi)
237private static String FormatMonth(int month, int repeatCount, DateTimeFormatInfo dtfi)
278private static String FormatHebrewMonthName(DateTime time, int month, int repeatCount, DateTimeFormatInfo dtfi)
299internal static int ParseQuoteString(String format, int pos, StringBuilder result)
340String.Format(
356internal static int ParseNextChar(String format, int pos)
378private static bool IsUseGenitiveForm(String format, int index, int tokenLen, char patternToMatch) {
434private static String FormatCustomized(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) {
629String fmtPattern = "D" + tokenLen;
717private static void FormatCustomizedTimeZone(DateTime dateTime, TimeSpan offset, String format, Int32 tokenLen, Boolean timeOnly, StringBuilder result) {
804internal static String GetRealFormat(String format, DateTimeFormatInfo dtfi)
806String realFormat = null;
871private static String ExpandPredefinedFormat(String format, ref DateTime dateTime, ref DateTimeFormatInfo dtfi, ref TimeSpan offset) {
907internal static String Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi) {
912internal static String Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset)
1067internal static String[] GetAllDateTimes(DateTime dateTime, char format, DateTimeFormatInfo dtfi)
1070String [] allFormats = null;
1071String [] results = null;
1088results = new String[allFormats.Length];
1097results = new String[allFormats.Length];
1113results = new String[] {Format(dateTime, new String(new char[] {format}), dtfi)};
1122internal static String[] GetAllDateTimes(DateTime dateTime, DateTimeFormatInfo dtfi)
1124List<String> results = new List<String>(DEFAULT_ALL_DATETIMES_SIZE);
1128String[] strings = GetAllDateTimes(dateTime, allStandardFormats[i], dtfi);
1134String[] value = new String[results.Count];
1141internal static void InvalidFormatForLocal(String format, DateTime dateTime) {
1147internal static void InvalidFormatForUtc(String format, DateTime dateTime) {
system\globalization\datetimeformatinfo.cs (167)
78internal String m_name = null;
81[NonSerialized]private String m_langName = null;
95internal String amDesignator = null;
96internal String pmDesignator = null;
98internal String dateSeparator = null; // derived from short date (whidbey expects, arrowhead doesn't)
100internal String generalShortTimePattern = null; // short date + short time (whidbey expects, arrowhead doesn't)
102internal String generalLongTimePattern = null; // short date + long time (whidbey expects, arrowhead doesn't)
104internal String timeSeparator = null; // derived from long time (whidbey expects, arrowhead doesn't)
105internal String monthDayPattern = null;
107internal String dateTimeOffsetPattern = null;
112internal const String rfc1123Pattern = "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'";
115internal const String sortableDateTimePattern = "yyyy'-'MM'-'dd'T'HH':'mm':'ss";
116internal const String universalSortableDateTimePattern = "yyyy'-'MM'-'dd HH':'mm':'ss'Z'";
127internal String fullDateTimePattern = null; // long date + long time (whidbey expects, arrowhead doesn't)
129internal String[] abbreviatedDayNames = null;
132internal String[] m_superShortDayNames = null;
134internal String[] dayNames = null;
135internal String[] abbreviatedMonthNames = null;
136internal String[] monthNames = null;
139internal String[] genitiveMonthNames = null;
143internal String[] m_genitiveAbbreviatedMonthNames = null;
147internal String[] leapYearMonthNames = null;
156internal String longDatePattern = null;
157internal String shortDatePattern = null;
158internal String yearMonthPattern = null;
159internal String longTimePattern = null;
160internal String shortTimePattern = null;
166private String[] allYearMonthPatterns = null; // This was wasn't serialized in Whidbey
167internal String[] allShortDatePatterns = null;
168internal String[] allLongDatePatterns = null;
169internal String[] allShortTimePatterns = null;
170internal String[] allLongTimePatterns = null;
173internal String[] m_eraNames = null;
174internal String[] m_abbrevEraNames = null;
175internal String[] m_abbrevEnglishEraNames = null;
203private String CultureName
228private String LanguageName
247private String[] internalGetAbbreviatedDayOfWeekNames()
270private String[] internalGetSuperShortDayNames()
287private String[] internalGetDayOfWeekNames()
304private String[] internalGetAbbreviatedMonthNames()
323private String[] internalGetMonthNames()
414internal String[] m_dateWords = null; // calculated, no need to serialze (whidbey expects, arrowhead doesn't)
573public String AMDesignator
730public int GetEra(String eraName) {
755if (String.Compare(eraName, m_eraNames[i], this.Culture, CompareOptions.IgnoreCase)==0) {
762if (String.Compare(eraName, m_abbrevEraNames[i], this.Culture, CompareOptions.IgnoreCase)==0) {
769if (String.Compare(eraName, m_abbrevEnglishEraNames[i], StringComparison.InvariantCultureIgnoreCase)==0) {
776internal String[] EraNames
798public String GetEraName(int era) {
812internal String[] AbbreviatedEraNames
825public String GetAbbreviatedEraName(int era) {
840internal String[] AbbreviatedEnglishEraNames
856public String DateSeparator
944public String FullDateTimePattern
973public String LongDatePattern
1012public String LongTimePattern
1050public String MonthDayPattern
1077public String PMDesignator
1110public String RFC1123Pattern
1123public String ShortDatePattern
1165public String ShortTimePattern
1199public String SortableDateTimePattern {
1212internal String GeneralShortTimePattern {
1228internal String GeneralLongTimePattern {
1251internal String DateTimeOffsetPattern {
1301public String TimeSeparator
1332public String UniversalSortableDateTimePattern
1345public String YearMonthPattern
1378static private void CheckNullValue(String[] values, int length) {
1390public String[] AbbreviatedDayNames
1394return ((String[])internalGetAbbreviatedDayOfWeekNames().Clone());
1418public String[] ShortestDayNames
1422return ((String[])internalGetSuperShortDayNames().Clone());
1443public String[] DayNames
1447return ((String[])internalGetDayOfWeekNames().Clone());
1470public String[] AbbreviatedMonthNames {
1472return ((String[])internalGetAbbreviatedMonthNames().Clone());
1494public String[] MonthNames
1498return ((String[])internalGetMonthNames().Clone());
1548internal String internalGetMonthName(int month, MonthNameStyles style, bool abbreviated) {
1553String[] monthNamesArray = null;
1583private String[] internalGetGenitiveMonthNames(bool abbreviated) {
1610internal String[] internalGetLeapYearMonthNames(/*bool abbreviated*/) {
1622public String GetAbbreviatedDayName(DayOfWeek dayofweek)
1641public String GetShortestDayName(DayOfWeek dayOfWeek)
1658static private String[] GetCombinedPatterns(String[] patterns1, String[] patterns2, String connectString)
1664String[] result = new String[patterns1.Length * patterns2.Length];
1682public String[] GetAllDateTimePatterns()
1684List<String> results = new List<String>(DEFAULT_ALL_DATETIMES_SIZE);
1688String[] strings = GetAllDateTimePatterns(DateTimeFormat.allStandardFormats[i]);
1698public String[] GetAllDateTimePatterns(char format)
1700Contract.Ensures(Contract.Result<String[]>() != null);
1701String [] result = null;
1726result = new String[] {MonthDayPattern};
1730result = new String[] {DateTimeFormat.RoundtripFormat};
1734result = new String[] {rfc1123Pattern};
1737result = new String[] {sortableDateTimePattern};
1746result = new String[] {UniversalSortableDateTimePattern};
1759public String GetDayName(DayOfWeek dayofweek)
1774public String GetAbbreviatedMonthName(int month)
1787public String GetMonthName(int month)
1844newPatterns = new String[patterns.Length + 1];
1859private String[] AllYearMonthPatterns
1867private String[] AllShortDatePatterns
1875private String[] AllShortTimePatterns
1883private String[] AllLongDatePatterns
1891private String[] AllLongTimePatterns
1901private String[] UnclonedYearMonthPatterns
1920private String [] UnclonedShortDatePatterns
1938private String[] UnclonedLongDatePatterns
1956private String[] UnclonedShortTimePatterns
1973private String[] UnclonedLongTimePatterns
2019public String NativeCalendarName
2046public void SetAllDateTimePatterns(String[] patterns, char format)
2109public String[] AbbreviatedMonthGenitiveNames
2113return ((String[])internalGetGenitiveMonthNames(true).Clone());
2137public String[] MonthGenitiveNames
2141return ((String[])internalGetGenitiveMonthNames(false).Clone());
2169internal String FullTimeSpanPositivePattern
2180String decimalSeparator = new NumberFormatInfo(cultureDataWithoutUserOverrides).NumberDecimalSeparator;
2193internal String FullTimeSpanNegativePattern
2227internal static void ValidateStyles(DateTimeStyles style, String parameterName) {
2337private const String dateSeparatorOrTimeZoneOffset = "-";
2338private const String invariantDateSeparator = "/";
2339private const String invariantTimeSeparator = ":";
2344internal const String IgnorablePeriod = ".";
2345internal const String IgnorableComma = ",";
2350internal const String CJKYearSuff = "\u5e74";
2351internal const String CJKMonthSuff = "\u6708";
2352internal const String CJKDaySuff = "\u65e5";
2354internal const String KoreanYearSuff = "\ub144";
2355internal const String KoreanMonthSuff = "\uc6d4";
2356internal const String KoreanDaySuff = "\uc77c";
2358internal const String KoreanHourSuff = "\uc2dc";
2359internal const String KoreanMinuteSuff = "\ubd84";
2360internal const String KoreanSecondSuff = "\ucd08";
2362internal const String CJKHourSuff = "\u6642";
2363internal const String ChineseHourSuff = "\u65f6";
2365internal const String CJKMinuteSuff = "\u5206";
2366internal const String CJKSecondSuff = "\u79d2";
2370internal const String LocalTimeMark = "T";
2372internal const String KoreanLangName = "ko";
2373internal const String JapaneseLangName = "ja";
2374internal const String EnglishLangName = "en";
2490String[] dateWords = null;
2506String monthPostfix = null;
2523String symbol = dateWords[i].Substring(1);
2559String str;
2567String str;
2576String str = GetDayName((DayOfWeek)i);
2594String specialDayOfWeek = "(" + GetAbbreviatedDayName((DayOfWeek)i) + ")";
2624String str;
2636String str = InvariantInfo.GetDayName((DayOfWeek)i);
2661private void AddMonthNames(TokenHashValue[] temp, String monthPostfix)
2664String str;
2813if (String.Compare(str.Value, str.Index, value.tokenString, 0, value.tokenString.Length, this.Culture, CompareOptions.IgnoreCase)==0) {
2858void InsertAtCurrentHashNode(TokenHashValue[] hashTable, String str, char ch, TokenType tokenType, int tokenValue, int pos, int hashcode, int hashProbe) {
2887void InsertHash(TokenHashValue[] hashTable, String str, TokenType tokenType, int tokenValue) {
2916if (String.Compare(str, 0, value.tokenString, 0, value.tokenString.Length, this.Culture, CompareOptions.IgnoreCase) == 0) {
2982internal String tokenString;
2986internal TokenHashValue(String tokenString, TokenType tokenType, int tokenValue) {
system\globalization\datetimeformatinfoscanner.cs (67)
98internal const String CJKYearSuff = "\u5e74";
99internal const String CJKMonthSuff = "\u6708";
100internal const String CJKDaySuff = "\u65e5";
102internal const String KoreanYearSuff = "\ub144";
103internal const String KoreanMonthSuff = "\uc6d4";
104internal const String KoreanDaySuff = "\uc77c";
106internal const String KoreanHourSuff = "\uc2dc";
107internal const String KoreanMinuteSuff = "\ubd84";
108internal const String KoreanSecondSuff = "\ucd08";
110internal const String CJKHourSuff = "\u6642";
111internal const String ChineseHourSuff = "\u65f6";
113internal const String CJKMinuteSuff = "\u5206";
114internal const String CJKSecondSuff = "\u79d2";
117internal List<String> m_dateWords = new List<String>();
119private static volatile Dictionary<String, String> s_knownWords;
121static Dictionary<String, String> KnownWords
127Dictionary<String, String> temp = new Dictionary<String, String>();
131temp.Add("/", String.Empty);
132temp.Add("-", String.Empty);
133temp.Add(".", String.Empty);
135temp.Add(CJKYearSuff, String.Empty);
136temp.Add(CJKMonthSuff, String.Empty);
137temp.Add(CJKDaySuff, String.Empty);
138temp.Add(KoreanYearSuff, String.Empty);
139temp.Add(KoreanMonthSuff, String.Empty);
140temp.Add(KoreanDaySuff, String.Empty);
141temp.Add(KoreanHourSuff, String.Empty);
142temp.Add(KoreanMinuteSuff, String.Empty);
143temp.Add(KoreanSecondSuff, String.Empty);
144temp.Add(CJKHourSuff, String.Empty);
145temp.Add(ChineseHourSuff, String.Empty);
146temp.Add(CJKMinuteSuff, String.Empty);
147temp.Add(CJKSecondSuff, String.Empty);
167internal static int SkipWhiteSpacesAndNonLetter(String pattern, int currentIndex)
214internal void AddDateWordOrPostfix(String formatPostfix, String str)
224String words;
229m_dateWords = new List<String>();
234String temp = MonthPostfixChar + str;
248String strWithoutDot = str.Substring(0, str.Length - 1);
276internal int AddDateWords(String pattern, int index, String formatPostfix)
342internal static int ScanRepeatChar(String pattern, char ch, int index, out int count)
367internal void AddIgnorableSymbols(String text)
372m_dateWords = new List<String>();
375String temp = IgnorableSymbolChar + text;
421internal void ScanDateWord(String pattern)
501internal String[] GetDateWordsOfDTFI(DateTimeFormatInfo dtfi) {
503String[] datePatterns = dtfi.GetAllDateTimePatterns('D');
542String[] result = null;
545result = new String[m_dateWords.Count];
573internal static FORMATFLAGS GetFormatFlagGenitiveMonth(String[] monthNames, String[] genitveMonthNames, String[] abbrevMonthNames, String[] genetiveAbbrevMonthNames)
585internal static FORMATFLAGS GetFormatFlagUseSpaceInMonthNames(String[] monthNames, String[] genitveMonthNames, String[] abbrevMonthNames, String[] genetiveAbbrevMonthNames)
607internal static FORMATFLAGS GetFormatFlagUseSpaceInDayNames(String[] dayNames, String[] abbrevDayNames)
system\globalization\datetimeparse.cs (55)
50internal static DateTime ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style) {
61internal static DateTime ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, out TimeSpan offset) {
75internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result) {
86internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) {
100internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, ref DateTimeResult result) {
124internal static DateTime ParseExactMultiple(String s, String[] formats,
137internal static DateTime ParseExactMultiple(String s, String[] formats,
152internal static bool TryParseExactMultiple(String s, String[] formats,
168internal static bool TryParseExactMultiple(String s, String[] formats,
180internal static bool TryParseExactMultiple(String s, String[] formats,
409internal const String GMTName = "GMT";
410internal const String ZuluName = "Z";
415private static bool MatchWord(ref __DTString str, String target)
1200private static Boolean GetYearMonthDayOrder(String datePattern, DateTimeFormatInfo dtfi, out int order)
1299private static Boolean GetYearMonthOrder(String pattern, DateTimeFormatInfo dtfi, out int order)
1365private static Boolean GetMonthDayOrder(String pattern, DateTimeFormatInfo dtfi, out int order)
1781String pattern = dtfi.ShortDatePattern;
2275internal static DateTime Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) {
2286internal static DateTime Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out TimeSpan offset) {
2300internal static bool TryParse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result) {
2311internal static bool TryParse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result, out TimeSpan offset) {
2330internal static bool TryParse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, ref DateTimeResult result) {
3056String searchStr = dtfi.GetAbbreviatedMonthName(i);
3108String searchStr = dtfi.GetMonthName(i);
3165String searchStr = dtfi.GetAbbreviatedDayName(i);
3198String searchStr = dtfi.GetDayName(i);
3231String searchStr = dtfi.GetEraName(eras[i]);
3268String searchStr = dtfi.AMDesignator;
3447private static String ExpandPredefinedFormat(String format, ref DateTimeFormatInfo dtfi, ref ParsingInfo parseInfo, ref DateTimeResult result) {
3820String quotedStr = enquotedString.ToString();
3941internal static bool TryParseQuoteString(String format, int pos, StringBuilder result, out int returnValue) {
4008String s,
4009String formatParam,
4024String originalFormat = formatParam;
4347internal String Value;
4365internal __DTString(String str, DateTimeFormatInfo dtfi, bool checkDigitToken) : this (str, dtfi)
4370internal __DTString(String str, DateTimeFormatInfo dtfi)
4532internal bool MatchSpecifiedWord(String target) {
4536internal bool MatchSpecifiedWord(String target, int endIndex) {
4552internal bool MatchSpecifiedWords(String target, bool checkWordBoundary, ref int matchLength) {
4623internal bool Match(String str) {
4665internal int MatchLongestWords(String[] words, ref int maxMatchStrLen) {
4668String word = words[i];
4891internal String s;
system\globalization\numberformatinfo.cs (48)
59internal String positiveSign = "+";
60internal String negativeSign = "-";
61internal String numberDecimalSeparator = ".";
62internal String numberGroupSeparator = ",";
63internal String currencyGroupSeparator = ",";
64internal String currencyDecimalSeparator = ".";
65internal String currencySymbol = "\x00a4"; // U+00a4 is the symbol for International Monetary Fund.
69internal String ansiCurrencySymbol = null;
70internal String nanSymbol = "NaN";
71internal String positiveInfinitySymbol = "Infinity";
72internal String negativeInfinitySymbol = "-Infinity";
73internal String percentDecimalSeparator = ".";
74internal String percentGroupSeparator = ",";
75internal String percentSymbol = "%";
76internal String perMilleSymbol = "\u2030";
79internal String[] nativeDigits = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
162static private void VerifyDecimalSeparator(String decSep, String propertyName) {
175static private void VerifyGroupSeparator(String groupSep, String propertyName) {
183static private void VerifyNativeDigits(String [] nativeDig, String propertyName) {
224static private void VerifyDigitSubstitution(DigitShapes digitSub, String propertyName) {
327String.Format(
340public String CurrencyDecimalSeparator {
362static internal void CheckGroupSize(String propName, int[] groupSize)
439public String CurrencyGroupSeparator {
449public String CurrencySymbol {
479public String NaNSymbol {
502String.Format(
524String.Format(
546String.Format(
568String.Format(
581public String NegativeInfinitySymbol {
597public String NegativeSign {
617String.Format(
630public String NumberDecimalSeparator {
640public String NumberGroupSeparator {
656String.Format(
669public String PositiveInfinitySymbol {
685public String PositiveSign {
705String.Format(
718public String PercentDecimalSeparator {
728public String PercentGroupSeparator {
738public String PercentSymbol {
754public String PerMilleSymbol {
769public String[] NativeDigits
771get { return (String[])nativeDigits.Clone(); }
system\globalization\textinfo.cs (38)
53private String m_listSeparator;
79private String m_cultureName; // Name of the culture that created this text info
81[NonSerialized]private String m_textInfoName; // Name of the text info we're using (ie: m_cultureData.STEXTINFO)
227internal static int GetHashCodeOrdinalIgnoreCase(String s)
234internal static int GetHashCodeOrdinalIgnoreCase(String s, bool forceRandomizedHashing, long additionalEntropy)
244internal static unsafe bool TryFastFindStringOrdinalIgnoreCase(int searchFlags, String source, int startIndex, String value, int count, ref int foundIndex)
254internal static unsafe int CompareOrdinalIgnoreCase(String str1, String str2)
265internal static unsafe int CompareOrdinalIgnoreCaseEx(String strA, int indexA, String strB, int indexB, int lengthA, int lengthB )
274internal static int IndexOfStringOrdinalIgnoreCase(String source, String value, int startIndex, int count)
319internal static int LastIndexOfStringOrdinalIgnoreCase(String source, String value, int startIndex, int count)
513public virtual String ListSeparator
557public unsafe virtual String ToLower(String str)
596public unsafe virtual String ToUpper(String str)
682public override String ToString()
712public unsafe String ToTitleCase(String str) {
722String lowercaseData = null;
802private static int AddNonLetter(ref StringBuilder result, ref String input, int inputIndex, int charLen) {
816private int AddTitlecaseLetter(ref StringBuilder result, ref String input, int inputIndex, int charLen) {
940internal unsafe int GetCaseInsensitiveHashCode(String str)
946internal unsafe int GetCaseInsensitiveHashCode(String str, bool forceRandomizedHashing, long additionalEntropy)
963private static unsafe extern char InternalChangeCaseChar(IntPtr handle, IntPtr handleOrigin, String localeName, char ch, bool isToUpper);
969private static unsafe extern String InternalChangeCaseString(IntPtr handle, IntPtr handleOrigin, String localeName, String str, bool isToUpper);
975private static unsafe extern int InternalGetCaseInsHash(IntPtr handle, IntPtr handleOrigin, String localeName, String str, bool forceRandomizedHashing, long additionalEntropy);
983private static unsafe extern int InternalCompareStringOrdinalIgnoreCase(String string1, int index1, String string2, int index2, int length1, int length2);
993private static unsafe extern bool InternalTryFindStringOrdinalIgnoreCase(int searchFlags, String source, int sourceCount, int startIndex, String target, int targetCount, ref int foundIndex);
system\globalization\timespanparse.cs (33)
71internal static void ValidateStyles(TimeSpanStyles style, String parameterName) {
122internal String sep; // Store the literal that we are parsing (if any)
165private String m_value;
167internal void Init(String input) {
170internal void Init(String input, int startPosition) {
372internal String[] literals;
379private String m_fullPosPattern;
380private String m_fullNegPattern;
394literals = new String[MaxLiteralTokens];
420if (!AddSep(String.Empty, ref result)) return false;
433private bool AddSep(String sep, ref TimeSpanResult result) {
556internal static TimeSpan Parse(String input, IFormatProvider formatProvider) {
567internal static Boolean TryParse(String input, IFormatProvider formatProvider, out TimeSpan result) {
580internal static TimeSpan ParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles) {
591internal static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) {
604internal static TimeSpan ParseExactMultiple(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles) {
615internal static Boolean TryParseExactMultiple(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) {
638private static Boolean TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, ref TimeSpanResult result) {
645if (input == String.Empty) {
701tok.sep = String.Empty;
1128private static Boolean TryParseExactTimeSpan(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles, ref TimeSpanResult result) {
1170private static Boolean TryParseByFormat(String input, String format, TimeSpanStyles styles, ref TimeSpanResult result) {
1360private static Boolean TryParseTimeSpanConstant(String input, ref TimeSpanResult result) {
1365private String str;
1385internal bool TryParse(String input, ref TimeSpanResult result) {
1522private static Boolean TryParseExactMultipleTimeSpan(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, ref TimeSpanResult result) {
system\guid.cs (30)
234public Guid(String g)
253public static Guid Parse(String input)
270public static bool TryParse(String input, out Guid result)
284public static Guid ParseExact(String input, String format)
328public static bool TryParseExact(String input, String format, out Guid result)
372private static bool TryParseGuid(String g, GuidStyles flags, ref GuidResult result)
378String guidString = g.Trim(); //Remove Whitespace
466private static bool TryParseGuidWithHexPrefix(String guidString, ref GuidResult result) {
474if(String.IsNullOrEmpty(guidString) || guidString[0] != '{') {
604private static bool TryParseGuidWithNoStyle(String guidString, ref GuidResult result) {
673private static bool TryParseGuidWithDashes(String guidString, ref GuidResult result) {
755private static unsafe bool StringToShort(String str, int requiredLength, int flags, out short result, ref GuidResult parseResult) {
759private static unsafe bool StringToShort(String str, ref int parsePos, int requiredLength, int flags, out short result, ref GuidResult parseResult) {
765private static unsafe bool StringToShort(String str, int* parsePos, int requiredLength, int flags, out short result, ref GuidResult parseResult) {
774private static unsafe bool StringToInt(String str, int requiredLength, int flags, out int result, ref GuidResult parseResult) {
778private static unsafe bool StringToInt(String str, ref int parsePos, int requiredLength, int flags, out int result, ref GuidResult parseResult) {
784private static unsafe bool StringToInt(String str, int* parsePos, int requiredLength, int flags, out int result, ref GuidResult parseResult) {
821private static unsafe bool StringToLong(String str, int flags, out long result, ref GuidResult parseResult) {
825private static unsafe bool StringToLong(String str, ref int parsePos, int flags, out long result, ref GuidResult parseResult) {
831private static unsafe bool StringToLong(String str, int* parsePos, int flags, out long result, ref GuidResult parseResult) {
862private static String EatAllWhitespace(String str)
882private static bool IsHexPrefix(String str, int i)
918public override String ToString()
1156public String ToString(String format) {
1194public String ToString(String format, IFormatProvider provider)
system\iappdomain.cs (32)
53String ToString();
96String dir);
110String dir,
115String dir,
129String dir,
137String dir,
144ObjectHandle CreateInstance(String assemblyName,
145String typeName);
148ObjectHandle CreateInstanceFrom(String assemblyFile,
149String typeName);
152ObjectHandle CreateInstance(String assemblyName,
153String typeName,
156ObjectHandle CreateInstanceFrom(String assemblyFile,
157String typeName,
160ObjectHandle CreateInstance(String assemblyName,
161String typeName,
170ObjectHandle CreateInstanceFrom(String assemblyFile,
171String typeName,
182Assembly Load(String assemblyString);
196Assembly Load(String assemblyString,
200int ExecuteAssembly(String assemblyFile,
204int ExecuteAssembly(String assemblyFile);
207int ExecuteAssembly(String assemblyFile,
209String[] args);
211String FriendlyName
214String BaseDirectory
220String RelativeSearchPath
229void AppendPrivatePath(String path);
235void SetShadowCopyPath (String s);
241void SetCachePath (String s);
244void SetData(String name, Object data);
266String DynamicDirectory
system\int16.cs (21)
85public override String ToString() {
86Contract.Ensures(Contract.Result<String>() != null);
91public String ToString(IFormatProvider provider) {
92Contract.Ensures(Contract.Result<String>() != null);
96public String ToString(String format) {
97Contract.Ensures(Contract.Result<String>() != null);
101public String ToString(String format, IFormatProvider provider) {
102Contract.Ensures(Contract.Result<String>() != null);
107private String ToString(String format, NumberFormatInfo info) {
108Contract.Ensures(Contract.Result<String>() != null);
117public static short Parse(String s) {
121public static short Parse(String s, NumberStyles style) {
126public static short Parse(String s, IFormatProvider provider) {
130public static short Parse(String s, NumberStyles style, IFormatProvider provider) {
135private static short Parse(String s, NumberStyles style, NumberFormatInfo info) {
158public static bool TryParse(String s, out Int16 result) {
162public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out Int16 result) {
167private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Int16 result) {
system\io\directory.cs (185)
43public static DirectoryInfo GetParent(String path)
52String fullPath = Path.GetFullPathInternal(path);
54String s = Path.GetDirectoryName(fullPath);
63public static DirectoryInfo CreateDirectory(String path) {
91internal static DirectoryInfo UnsafeCreateDirectory(String path)
120String fullPath = Path.GetFullPathInternal(path);
160public static DirectoryInfo CreateDirectory(String path, DirectorySecurity directorySecurity)
182internal static String GetDemandDir(string fullPath, bool thisDirOnly)
184String demandPath;
205internal static void InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj)
214internal unsafe static void InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, bool checkHost)
254String dir = fullPath.Substring(0, i+1);
278String[] securityList = new String[stackDir.Count];
321String errorString = path;
324String name = stackDir[stackDir.Count - 1];
363String root = InternalGetDirectoryRoot(fullPath);
387public static bool Exists(String path)
395internal static bool UnsafeExists(String path)
403internal static bool InternalExistsHelper(String path, bool checkHost)
433internal static bool InternalExists(String path) {
443internal static bool InternalExists(String path, out int lastError) {
453public static void SetCreationTime(String path,DateTime creationTime)
461public unsafe static void SetCreationTimeUtc(String path,DateTime creationTimeUtc)
476public static DateTime GetCreationTime(String path)
483public static DateTime GetCreationTimeUtc(String path)
490public static void SetLastWriteTime(String path,DateTime lastWriteTime)
498public unsafe static void SetLastWriteTimeUtc(String path,DateTime lastWriteTimeUtc)
513public static DateTime GetLastWriteTime(String path)
520public static DateTime GetLastWriteTimeUtc(String path)
527public static void SetLastAccessTime(String path,DateTime lastAccessTime)
535public unsafe static void SetLastAccessTimeUtc(String path,DateTime lastAccessTimeUtc)
550public static DateTime GetLastAccessTime(String path)
557public static DateTime GetLastAccessTimeUtc(String path)
565public static DirectorySecurity GetAccessControl(String path)
572public static DirectorySecurity GetAccessControl(String path, AccessControlSections includeSections)
580public static void SetAccessControl(String path, DirectorySecurity directorySecurity)
586String fullPath = Path.GetFullPathInternal(path);
594public static String[] GetFiles(String path)
598Contract.Ensures(Contract.Result<String[]>() != null);
608public static String[] GetFiles(String path, String searchPattern)
614Contract.Ensures(Contract.Result<String[]>() != null);
624public static String[] GetFiles(String path, String searchPattern, SearchOption searchOption)
632Contract.Ensures(Contract.Result<String[]>() != null);
642private static String[] InternalGetFiles(String path, String searchPattern, SearchOption searchOption)
654internal static String[] UnsafeGetFiles(String path, String searchPattern, SearchOption searchOption)
666public static String[] GetDirectories(String path)
670Contract.Ensures(Contract.Result<String[]>() != null);
680public static String[] GetDirectories(String path, String searchPattern)
686Contract.Ensures(Contract.Result<String[]>() != null);
696public static String[] GetDirectories(String path, String searchPattern, SearchOption searchOption)
704Contract.Ensures(Contract.Result<String[]>() != null);
714private static String[] InternalGetDirectories(String path, String searchPattern, SearchOption searchOption)
719Contract.Ensures(Contract.Result<String[]>() != null);
727internal static String[] UnsafeGetDirectories(String path, String searchPattern, SearchOption searchOption)
732Contract.Ensures(Contract.Result<String[]>() != null);
740public static String[] GetFileSystemEntries(String path)
744Contract.Ensures(Contract.Result<String[]>() != null);
754public static String[] GetFileSystemEntries(String path, String searchPattern)
760Contract.Ensures(Contract.Result<String[]>() != null);
770public static String[] GetFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
778Contract.Ensures(Contract.Result<String[]>() != null);
786private static String[] InternalGetFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
800public SearchData(String fullPath, String userPath, SearchOption searchOption)
824internal static String[] InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, bool includeFiles, bool includeDirs, SearchOption searchOption, bool checkHost)
831IEnumerable<String> enble = FileSystemEnumerableFactory.CreateFileNameIterator(
834List<String> fileList = new List<String>(enble);
840public static IEnumerable<String> EnumerateDirectories(String path)
851public static IEnumerable<String> EnumerateDirectories(String path, String searchPattern)
864public static IEnumerable<String> EnumerateDirectories(String path, String searchPattern, SearchOption searchOption)
879private static IEnumerable<String> InternalEnumerateDirectories(String path, String searchPattern, SearchOption searchOption)
890public static IEnumerable<String> EnumerateFiles(String path)
894Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
902public static IEnumerable<String> EnumerateFiles(String path, String searchPattern)
908Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
916public static IEnumerable<String> EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
924Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
932private static IEnumerable<String> InternalEnumerateFiles(String path, String searchPattern, SearchOption searchOption)
937Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
944public static IEnumerable<String> EnumerateFileSystemEntries(String path)
948Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
956public static IEnumerable<String> EnumerateFileSystemEntries(String path, String searchPattern)
962Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
970public static IEnumerable<String> EnumerateFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
978Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
986private static IEnumerable<String> InternalEnumerateFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
991Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
996private static IEnumerable<String> EnumerateFileSystemNames(String path, String searchPattern, SearchOption searchOption,
1002Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
1014public static String[] GetLogicalDrives()
1016Contract.Ensures(Contract.Result<String[]>() != null);
1031String[] result = new String[count];
1078public static String GetCurrentDirectory()
1086internal static String UnsafeGetCurrentDirectory()
1172public static void SetCurrentDirectory(String path)
1189String fulldestDirName = Path.GetFullPathInternal(path);
1205public static void Move(String sourceDirName,String destDirName) {
1212internal static void UnsafeMove(String sourceDirName, String destDirName) {
1219private static void InternalMove(String sourceDirName, String destDirName, bool checkHost) {
1231String fullsourceDirName = Path.GetFullPathInternal(sourceDirName);
1232String sourcePath = GetDemandDir(fullsourceDirName, false);
1237String fulldestDirName = Path.GetFullPathInternal(destDirName);
1238String destPath = GetDemandDir(fulldestDirName, false);
1255if (String.Compare(sourcePath, destPath, StringComparison.OrdinalIgnoreCase) == 0)
1258String sourceRoot = Path.GetPathRoot(sourcePath);
1259String destinationRoot = Path.GetPathRoot(destPath);
1260if (String.Compare(sourceRoot, destinationRoot, StringComparison.OrdinalIgnoreCase) != 0)
1274__Error.WinIOError(hr, String.Empty);
1281public static void Delete(String path)
1283String fullPath = Path.GetFullPathInternal(path);
1290public static void Delete(String path, bool recursive)
1292String fullPath = Path.GetFullPathInternal(path);
1299internal static void UnsafeDelete(String path, bool recursive)
1301String fullPath = Path.GetFullPathInternal(path);
1310internal static void Delete(String fullPath, String userPath, bool recursive, bool checkHost)
1312String demandPath;
1355private static void DeleteHelper(String fullPath, String userPath, bool recursive, bool throwOnTopLevelDirectoryNotFound, ref Win32Native.WIN32_FIND_DATA data)
1394String newFullPath = Path.CombineNoChecks(fullPath, fileName);
1395String newUserPath = Path.CombineNoChecks(userPath, fileName);
1410String mountPoint = Path.CombineNoChecks(fullPath, fileName + Path.DirectorySeparatorChar);
1429String reparsePoint = Path.CombineNoChecks(fullPath, fileName);
1497private static SafeFileHandle OpenHandle(String path)
1499String fullPath = Path.GetFullPathInternal(path);
1500String root = Path.GetPathRoot(fullPath);
system\io\directoryinfo.cs (44)
75public DirectoryInfo(String path)
111internal DirectoryInfo(String fullPath, bool junk)
202public DirectoryInfo CreateSubdirectory(String path) {
214public DirectoryInfo CreateSubdirectory(String path, DirectorySecurity directorySecurity)
237private DirectoryInfo CreateSubdirectoryHelper(String path, Object directorySecurity)
241String newDirs = Path.InternalCombine(FullPath, path);
242String fullPath = Path.GetFullPathInternal(newDirs);
244if (0!=String.Compare(FullPath,0,fullPath,0, FullPath.Length,StringComparison.OrdinalIgnoreCase)) {
245String displayPath = __Error.GetDisplayablePath(DisplayPath, false);
250String demandDirForCreation = Directory.GetDemandDir(fullPath, true);
332public FileInfo[] GetFiles(String searchPattern)
345public FileInfo[] GetFiles(String searchPattern, SearchOption searchOption)
360private FileInfo[] InternalGetFiles(String searchPattern, SearchOption searchOption)
390public FileSystemInfo[] GetFileSystemInfos(String searchPattern)
403public FileSystemInfo[] GetFileSystemInfos(String searchPattern, SearchOption searchOption)
418private FileSystemInfo[] InternalGetFileSystemInfos(String searchPattern, SearchOption searchOption)
442public DirectoryInfo[] GetDirectories(String searchPattern)
456public DirectoryInfo[] GetDirectories(String searchPattern, SearchOption searchOption)
472private DirectoryInfo[] InternalGetDirectories(String searchPattern, SearchOption searchOption)
491public IEnumerable<DirectoryInfo> EnumerateDirectories(String searchPattern)
502public IEnumerable<DirectoryInfo> EnumerateDirectories(String searchPattern, SearchOption searchOption)
515private IEnumerable<DirectoryInfo> InternalEnumerateDirectories(String searchPattern, SearchOption searchOption)
532public IEnumerable<FileInfo> EnumerateFiles(String searchPattern)
543public IEnumerable<FileInfo> EnumerateFiles(String searchPattern, SearchOption searchOption)
556private IEnumerable<FileInfo> InternalEnumerateFiles(String searchPattern, SearchOption searchOption)
573public IEnumerable<FileSystemInfo> EnumerateFileSystemInfos(String searchPattern)
584public IEnumerable<FileSystemInfo> EnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
597private IEnumerable<FileSystemInfo> InternalEnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
621String demandPath;
623String rootPath = FullPath.Substring(0, rootLength);
662String fullSourcePath;
668if (String.Compare(fullSourcePath, fullDestDirName, StringComparison.OrdinalIgnoreCase) == 0)
671String sourceRoot = Path.GetPathRoot(fullSourcePath);
672String destinationRoot = Path.GetPathRoot(fullDestDirName);
674if (String.Compare(sourceRoot, destinationRoot, StringComparison.OrdinalIgnoreCase) != 0)
716public override String ToString()
721private static String GetDisplayName(String originalPath, String fullPath)
726String displayName = "";
744private static String GetDirName(String fullPath)
748String dirName = null;
751String s = fullPath;
system\io\file.cs (144)
45public static StreamReader OpenText(String path)
55public static StreamWriter CreateText(String path)
65public static StreamWriter AppendText(String path)
85public static void Copy(String sourceFileName, String destFileName) {
110public static void Copy(String sourceFileName, String destFileName, bool overwrite) {
127internal static void UnsafeCopy(String sourceFileName, String destFileName, bool overwrite) {
147internal static String InternalCopy(String sourceFileName, String destFileName, bool overwrite, bool checkHost) {
153String fullSourceFileName = Path.GetFullPathInternal(sourceFileName);
154String fullDestFileName = Path.GetFullPathInternal(destFileName);
172String fileName = destFileName;
206public static FileStream Create(String path) {
220public static FileStream Create(String path, int bufferSize) {
226public static FileStream Create(String path, int bufferSize, FileOptions options) {
232public static FileStream Create(String path, int bufferSize, FileOptions options, FileSecurity fileSecurity) {
250public static void Delete(String path) {
276internal static void UnsafeDelete(String path)
288internal static void InternalDelete(String path, bool checkHost)
290String fullPath = Path.GetFullPathInternal(path);
317public static void Decrypt(String path)
327String fullPath = Path.GetFullPathInternal(path);
337if (!String.Equals("NTFS", di.DriveFormat))
348public static void Encrypt(String path)
358String fullPath = Path.GetFullPathInternal(path);
368if (!String.Equals("NTFS", di.DriveFormat))
386public static bool Exists(String path)
408internal static bool UnsafeExists(String path)
416private static bool InternalExistsHelper(String path, bool checkHost)
457internal static bool InternalExists(String path) {
467public static FileStream Open(String path, FileMode mode) {
473public static FileStream Open(String path, FileMode mode, FileAccess access) {
479public static FileStream Open(String path, FileMode mode, FileAccess access, FileShare share) {
485public static void SetCreationTime(String path, DateTime creationTime)
493public unsafe static void SetCreationTimeUtc(String path, DateTime creationTimeUtc)
510public static DateTime GetCreationTime(String path)
518public static DateTime GetCreationTimeUtc(String path)
526private static DateTime InternalGetCreationTimeUtc(String path, bool checkHost)
528String fullPath = Path.GetFullPathInternal(path);
549public static void SetLastAccessTime(String path, DateTime lastAccessTime)
557public unsafe static void SetLastAccessTimeUtc(String path, DateTime lastAccessTimeUtc)
574public static DateTime GetLastAccessTime(String path)
582public static DateTime GetLastAccessTimeUtc(String path)
590private static DateTime InternalGetLastAccessTimeUtc(String path, bool checkHost)
592String fullPath = Path.GetFullPathInternal(path);
613public static void SetLastWriteTime(String path, DateTime lastWriteTime)
621public unsafe static void SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
638public static DateTime GetLastWriteTime(String path)
646public static DateTime GetLastWriteTimeUtc(String path)
654private static DateTime InternalGetLastWriteTimeUtc(String path, bool checkHost)
656String fullPath = Path.GetFullPathInternal(path);
678public static FileAttributes GetAttributes(String path)
680String fullPath = Path.GetFullPathInternal(path);
703public static void SetAttributes(String path, FileAttributes fileAttributes)
705String fullPath = Path.GetFullPathInternal(path);
721public static FileSecurity GetAccessControl(String path)
728public static FileSecurity GetAccessControl(String path, AccessControlSections includeSections)
737public static void SetAccessControl(String path, FileSecurity fileSecurity)
743String fullPath = Path.GetFullPathInternal(path);
754public static FileStream OpenRead(String path) {
775public static FileStream OpenWrite(String path) {
783public static String ReadAllText(String path)
797public static String ReadAllText(String path, Encoding encoding)
813internal static String UnsafeReadAllText(String path)
827private static String InternalReadAllText(String path, Encoding encoding, bool checkHost)
840public static void WriteAllText(String path, String contents)
854public static void WriteAllText(String path, String contents, Encoding encoding)
870internal static void UnsafeWriteAllText(String path, String contents)
884private static void InternalWriteAllText(String path, String contents, Encoding encoding, bool checkHost)
897public static byte[] ReadAllBytes(String path)
905internal static byte[] UnsafeReadAllBytes(String path)
914private static byte[] InternalReadAllBytes(String path, bool checkHost)
940public static void WriteAllBytes(String path, byte[] bytes)
956internal static void UnsafeWriteAllBytes(String path, byte[] bytes)
972private static void InternalWriteAllBytes(String path, byte[] bytes, bool checkHost)
987public static String[] ReadAllLines(String path)
1000public static String[] ReadAllLines(String path, Encoding encoding)
1015private static String[] InternalReadAllLines(String path, Encoding encoding)
1021String line;
1022List<String> lines = new List<String>();
1033public static IEnumerable<String> ReadLines(String path)
1046public static IEnumerable<String> ReadLines(String path, Encoding encoding)
1061public static void WriteAllLines(String path, String[] contents)
1076public static void WriteAllLines(String path, String[] contents, Encoding encoding)
1093public static void WriteAllLines(String path, IEnumerable<String> contents)
1108public static void WriteAllLines(String path, IEnumerable<String> contents, Encoding encoding)
1125private static void InternalWriteAllLines(TextWriter writer, IEnumerable<String> contents)
1132foreach (String line in contents)
1141public static void AppendAllText(String path, String contents)
1154public static void AppendAllText(String path, String contents, Encoding encoding)
1169private static void InternalAppendAllText(String path, String contents, Encoding encoding)
1181public static void AppendAllLines(String path, IEnumerable<String> contents)
1196public static void AppendAllLines(String path, IEnumerable<String> contents, Encoding encoding)
1222public static void Move(String sourceFileName, String destFileName) {
1229internal static void UnsafeMove(String sourceFileName, String destFileName) {
1236private static void InternalMove(String sourceFileName, String destFileName, bool checkHost) {
1247String fullSourceFileName = Path.GetFullPathInternal(sourceFileName);
1248String fullDestFileName = Path.GetFullPathInternal(destFileName);
1274public static void Replace(String sourceFileName, String destinationFileName, String destinationBackupFileName)
1287public static void Replace(String sourceFileName, String destinationFileName, String destinationBackupFileName, bool ignoreMetadataErrors)
1301private static void InternalReplace(String sourceFileName, String destinationFileName, String destinationBackupFileName, bool ignoreMetadataErrors)
1308String fullSrcPath = Path.GetFullPathInternal(sourceFileName);
1309String fullDestPath = Path.GetFullPathInternal(destinationFileName);
1310String fullBackupPath = null;
1334FileIOPermission perm = new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.Write, new String[] { fullSrcPath, fullDestPath });
1356internal static int FillAttributeInfo(String path, ref Win32Native.WIN32_FILE_ATTRIBUTE_DATA data, bool tryagain, bool returnErrorOnNotFound)
1365String tempPath = path.TrimEnd(new char [] {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar});
1455private static FileStream OpenFile(String path, FileAccess access, out SafeFileHandle handle)
1468String FullPath = Path.GetFullPathInternal(path);
system\io\fileloadexception.cs (20)
35private String _fileName; // the name of the file we could not load.
36private String _fusionLog; // fusion log (when applicable)
43public FileLoadException(String message)
48public FileLoadException(String message, Exception inner)
53public FileLoadException(String message, String fileName) : base(message)
59public FileLoadException(String message, String fileName, Exception inner)
65public override String Message
79public String FileName {
98public override String ToString()
100String s = GetType().FullName + ": " + Message;
148private FileLoadException(String fileName, String fusionLog,int hResult)
158public String FusionLog {
172info.AddValue("FileLoad_FileName", _fileName, typeof(String));
176info.AddValue("FileLoad_FusionLog", FusionLog, typeof(String));
185internal static String FormatFileLoadExceptionMessage(String fileName,
194return String.Format(CultureInfo.CurrentCulture, format, fileName, message);
system\io\filenotfoundexception.cs (17)
31private String _fileName; // The name of the file that isn't found.
32private String _fusionLog; // fusion log (when applicable)
39public FileNotFoundException(String message)
44public FileNotFoundException(String message, Exception innerException)
49public FileNotFoundException(String message, String fileName) : base(message)
55public FileNotFoundException(String message, String fileName, Exception innerException)
61public override String Message
81public String FileName {
85public override String ToString()
87String s = GetType().FullName + ": " + Message;
134private FileNotFoundException(String fileName, String fusionLog,int hResult)
144public String FusionLog {
158info.AddValue("FileNotFound_FileName", _fileName, typeof(String));
162info.AddValue("FileNotFound_FusionLog", FusionLog, typeof(String));
system\io\filestream.cs (33)
319BCLDebug.Log(String.Format("AsyncFSCallback called. errorCode: " + errorCode + " numBytes: " + numBytes));
389__Error.WinIOError(errorCode, String.Empty);
409private String _fileName; // Fully qualified file name.
511public FileStream(String path, FileMode mode)
518public FileStream(String path, FileMode mode, FileAccess access)
525public FileStream(String path, FileMode mode, FileAccess access, FileShare share)
532public FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize)
541public FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options)
553public FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool useAsync)
564public FileStream(String path, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize, FileOptions options, FileSecurity fileSecurity)
582public FileStream(String path, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize, FileOptions options)
592internal FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, String msgPath, bool bFromProxy)
601internal FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, String msgPath, bool bFromProxy, bool useLongPath)
610internal FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, String msgPath, bool bFromProxy, bool useLongPath, bool checkHost)
620private void Init(String path, FileMode mode, FileAccess access, int rights, bool useRights, FileShare share, int bufferSize, FileOptions options, Win32Native.SECURITY_ATTRIBUTES secAttrs, String msgPath, bool bFromProxy, bool useLongPath, bool checkHost)
642String badArg = null;
801FileIOPermission.QuickDemand(secAccess, control, new String[] { filePath }, false, false);
842String tempPath = filePath;
1186__Error.WinIOError(hr, String.Empty);
1198public String Name {
1213internal String NameInternal {
1485__Error.WinIOError(hr, String.Empty);
1599__Error.WinIOError(hr, String.Empty);
1718__Error.WinIOError(hr, String.Empty);
1859__Error.WinIOError(hr, String.Empty);
2097__Error.WinIOError(hr, String.Empty);
2149__Error.WinIOError(afsar.ErrorCode, String.Empty);
2354__Error.WinIOError(hr, String.Empty);
2404__Error.WinIOError(afsar.ErrorCode, String.Empty);
system\io\filesystemenumerable.cs (47)
40internal static IEnumerable<String> CreateFileNameIterator(String path, String originalUserPath, String searchPattern,
47SearchResultHandler<String> handler = new StringResultHandler(includeFiles, includeDirs);
48return new FileSystemEnumerableIterator<String>(path, originalUserPath, searchPattern, searchOption, handler, checkHost);
51internal static IEnumerable<FileInfo> CreateFileInfoIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption)
61internal static IEnumerable<DirectoryInfo> CreateDirectoryInfoIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption)
72internal static IEnumerable<FileSystemInfo> CreateFileSystemInfoIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption)
172private String searchCriteria;
185private String userPath;
187private String fullPath;
188private String normalizedSearchPath;
193internal FileSystemEnumerableIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler<TSource> resultHandler, bool checkHost)
205String normalizedSearchPattern = NormalizeSearchPattern(searchPattern);
217String fullSearchString = GetFullSearchString(fullPath, normalizedSearchPattern);
247String searchPatternDirName = Path.GetDirectoryName(normalizedSearchPattern);
248String userPathTemp = originalUserPath;
268String searchPath = Path.InternalCombine(searchData.fullPath, searchCriteria);
315private FileSystemEnumerableIterator(String fullPath, String normalizedSearchPath, String searchCriteria, String userPath, SearchOption searchOption, SearchResultHandler<TSource> resultHandler, bool checkHost)
426String searchPath = Path.InternalCombine(searchData.fullPath, searchCriteria);
516private void HandleError(int hr, String path)
527String searchPath = Path.InternalCombine(localSearchData.fullPath, "*");
581internal void DoDemand(String fullPathToDemand)
590String demandDir = Directory.GetDemandDir(fullPathToDemand, true);
595private static String NormalizeSearchPattern(String searchPattern)
600String tempSearchPattern = searchPattern.TrimEnd(Path.TrimEndChars);
612private static String GetNormalizedSearchCriteria(String fullSearchString, String fullPathMod)
618String searchCriteria = null;
633private static String GetFullSearchString(String fullPath, String searchPattern)
638String tempStr = Path.InternalCombine(fullPath, searchPattern);
system\io\isolatedstorage\isolatedstoragefile.cs (125)
55private const String s_name = "file.store";
56internal const String s_Files = "Files";
57internal const String s_AssemFiles= "AssemFiles";
58internal const String s_AppFiles= "AppFiles";
59internal const String s_IDFile = "identity.dat";
60internal const String s_InfoFile = "info.dat";
61internal const String s_AppInfoFile = "appinfo.dat";
63private static volatile String s_RootDirUser;
64private static volatile String s_RootDirMachine;
65private static volatile String s_RootDirRoaming;
66private static volatile String s_appDataDir;
74private String m_RootDir;
75private String m_InfoFile;
76private String m_SyncObjectName;
500public void DeleteFile(String file)
516String fullPath = GetFullPath(file);
559String isPath = GetFullPath(path); // Prepend IS root
560String fullPath = LongPath.NormalizePath(isPath);
573Demand(new FileIOPermission(FileIOPermissionAccess.Read, new String[] { fullPath }, false, false));
603String isPath = GetFullPath(path); // Prepend IS root
604String fullPath = LongPath.NormalizePath(isPath);
617Demand(new FileIOPermission(FileIOPermissionAccess.Read, new String[] { fullPath }, false, false));
632public void CreateDirectory(String dir)
641String isPath = GetFullPath(dir); // Prepend IS root
642String fullPath = LongPath.NormalizePath(isPath);
648Demand(new FileIOPermission(FileIOPermissionAccess.Read, new String[] { fullPath }, false, false));
652String [] dirList = DirectoriesToCreate(fullPath);
711String isPath = GetFullPath(path); // Prepend IS root
712String fullPath = LongPath.NormalizePath(isPath);
717Demand(new FileIOPermission(FileIOPermissionAccess.Read, new String[] { fullPath }, false, false));
752String isPath = GetFullPath(path); // Prepend IS root
753String fullPath = LongPath.NormalizePath(isPath);
758Demand(new FileIOPermission(FileIOPermissionAccess.Read, new String[] { fullPath }, false, false));
793String isPath = GetFullPath(path); // Prepend IS root
794String fullPath = LongPath.NormalizePath(isPath);
799Demand(new FileIOPermission(FileIOPermissionAccess.Read, new String[] { fullPath }, false, false));
861String sourceFileNameFullPath = LongPath.NormalizePath(GetFullPath(sourceFileName));
862String destinationFileNameFullPath = LongPath.NormalizePath(GetFullPath(destinationFileName));
867Demand(new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.Read, new String[] { sourceFileNameFullPath }, false, false));
868Demand(new FileIOPermission(FileIOPermissionAccess.Write, new String[] { destinationFileNameFullPath }, false, false));
993String sourceFileNameFullPath = LongPath.NormalizePath(GetFullPath(sourceFileName));
994String destinationFileNameFullPath = LongPath.NormalizePath(GetFullPath(destinationFileName));
999Demand(new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.Read, new String[] { sourceFileNameFullPath }, false, false));
1000Demand(new FileIOPermission(FileIOPermissionAccess.Write, new String[] { destinationFileNameFullPath }, false, false));
1059String sourceDirectoryNameFullPath = LongPath.NormalizePath(GetFullPath(sourceDirectoryName));
1060String destinationDirectoryNameFullPath = LongPath.NormalizePath(GetFullPath(destinationDirectoryName));
1065Demand(new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.Read, new String[] { sourceDirectoryNameFullPath }, false, false));
1066Demand(new FileIOPermission(FileIOPermissionAccess.Write, new String[] { destinationDirectoryNameFullPath }, false, false));
1098private String[] DirectoriesToCreate(String fullPath)
1101List<String> list = new List<String>();
1114String currDir = fullPath.Substring(0, i);
1132public void DeleteDirectory(String dir)
1146String normalizedDir = LongPath.NormalizePath(GetFullPath(dir));
1184public String[] GetFileNames() {
1194public String[] GetFileNames(String searchPattern)
1210String[] retVal = GetFileDirectoryNames(GetFullPath(searchPattern), searchPattern, true);
1216public String[] GetDirectoryNames() {
1227public String[] GetDirectoryNames(String searchPattern)
1243String[] retVal = GetFileDirectoryNames(GetFullPath(searchPattern), searchPattern, false);
1248private static String NormalizeSearchPattern(String searchPattern)
1253String tempSearchPattern = searchPattern.TrimEnd(Path.TrimEndChars);
1288String rootDir, domainRoot = null;
1407private bool ContainsUnknownFiles(String rootDir)
1409String[] dirs, files;
1521private static bool NotIDFile(String file)
1523return (String.Compare(
1527private static bool NotInfoFile(String file)
1530String.Compare(file, IsolatedStorageFile.s_InfoFile, StringComparison.Ordinal) != 0 &&
1531String.Compare(file, IsolatedStorageFile.s_AppInfoFile, StringComparison.Ordinal) != 0);
1534private static bool NotFilesDir(String dir)
1536return (String.Compare(
1539internal static bool NotAssemFilesDir(String dir)
1541return (String.Compare(
1545internal static bool NotAppFilesDir(String dir)
1547return (String.Compare(
1560String rootDir = GetRootDir(scope);
1592internal String RootDirectory
1598internal String GetFullPath(String path)
1602if (path == String.Empty)
1624private static String GetDataDirectoryFromActivationContext()
1633String dataDir = activationContext.DataDirectory;
1770String rootDir = sb.ToString();
1955internal static String GetRootDir(IsolatedStorageScope scope)
1996String rndName = GetMachineRandomDirectory(rootDir);
2037String rootDir = null;
2055String rndName = GetRandomDirectory(rootDir, out bMigrateNeeded, out sOldStoreLocation);
2132internal static string CreateRandomDirectory(String rootDir) {
2163internal static string GetRandomDirectory(String rootDir, out bool bMigrateNeeded, out string sOldStoreLocation)
2167String[] nodes1 = GetFileDirectoryNames(rootDir + "*", "*", false);
2171String[] nodes2 = GetFileDirectoryNames(rootDir + nodes1[i] + "\\" + "*", "*", false);
2198String[] nodes1 = GetFileDirectoryNames(rootDir + "*", "*", false);
2202String[] nodes2 = GetFileDirectoryNames(rootDir + nodes1[i] + "\\" + "*", "*", false);
2223internal static String GetStrongHashSuitableForObjectName(string name)
2234private String GetSyncObjectName()
2381internal void CreateIDFile(String path, IsolatedStorageScope scope)
2408internal static String[] GetFileDirectoryNames(String path, String userSearchPattern, bool file)
2419return new String[0];
2430String fullPath = LongPath.NormalizePath(path);
2440String dir = LongPath.GetDirectoryName(fullPath);
2447String[] demandPath = new String[1];
2458String[] list = new String[10];
2468return new String[0];
2503String[] sa = new String[1];
2525internal static extern SafeIsolatedStorageFileHandle Open(String infoFile, String syncName);
2583private String m_rootDir;
2612String domainName, assemName, appName;
2750private bool GetIDStream(String path, out Stream s)
2810public String Path1;
2811public String Path2;
2818private String m_Root;
2822private String[] m_RootDir;
2825private String[] m_SubDir;
2829public TwoLevelFileEnumerator(String root)
system\io\isolatedstorage\isolatedstoragefilestream.cs (12)
38private const String s_BackSlash = "\\";
46private String m_GivenPath;
47private String m_FullPath;
55public IsolatedStorageFileStream(String path, FileMode mode)
61public IsolatedStorageFileStream(String path, FileMode mode,
70public IsolatedStorageFileStream(String path, FileMode mode,
79public IsolatedStorageFileStream(String path, FileMode mode,
88public IsolatedStorageFileStream(String path, FileMode mode,
96public IsolatedStorageFileStream(String path, FileMode mode,
104public IsolatedStorageFileStream(String path, FileMode mode,
115public IsolatedStorageFileStream(String path, FileMode mode,
753internal void NotPermittedError(String str) {
system\io\longpath.cs (105)
41internal unsafe static String NormalizePath(String path)
50internal unsafe static String NormalizePath(String path, bool fullCheck)
56internal static String InternalCombine(String path1, String path2)
64String tempPath1 = TryRemoveLongPathPrefix(path1, out removedPrefix);
66String tempResult = Path.InternalCombine(tempPath1, path2);
75internal static int GetRootLength(String path)
78String tempPath = TryRemoveLongPathPrefix(path, out removedPrefix);
92internal static bool IsPathRooted(String path)
95String tempPath = Path.RemoveLongPathPrefix(path);
111internal static String GetPathRoot(String path)
116String tempPath = TryRemoveLongPathPrefix(path, out removedPrefix);
119String result = path.Substring(0, GetRootLength(tempPath));
137internal static String GetDirectoryName(String path)
142String tempPath = TryRemoveLongPathPrefix(path, out removedPrefix);
153String result = tempPath.Substring(0, i);
165internal static String TryRemoveLongPathPrefix(String path, out bool removed)
191internal static void Copy(String sourceFileName, String destFileName, bool overwrite) {
197String fullSourceFileName = LongPath.NormalizePath(sourceFileName);
199String fullDestFileName = LongPath.NormalizePath(destFileName);
208private static String InternalCopy(String fullSourceFileName, String fullDestFileName, String sourceFileName, String destFileName, bool overwrite) {
220String fileName = destFileName;
255internal static void Delete(String path) {
258String fullPath = LongPath.NormalizePath(path);
263String tempPath = Path.AddLongPathPrefix(fullPath);
284internal static bool Exists(String path) {
315internal static bool InternalExists(String path) {
317String tempPath = Path.AddLongPathPrefix(path);
324internal static DateTimeOffset GetCreationTime(String path)
328String fullPath = LongPath.NormalizePath(path);
331String tempPath = Path.AddLongPathPrefix(fullPath);
345internal static DateTimeOffset GetLastAccessTime(String path)
349String fullPath = LongPath.NormalizePath(path);
352String tempPath = Path.AddLongPathPrefix(fullPath);
365internal static DateTimeOffset GetLastWriteTime(String path)
369String fullPath = LongPath.NormalizePath(path);
372String tempPath = Path.AddLongPathPrefix(fullPath);
393internal static void Move(String sourceFileName, String destFileName) {
399String fullSourceFileName = LongPath.NormalizePath(sourceFileName);
401String fullDestFileName = LongPath.NormalizePath(destFileName);
407String tempSourceFileName = Path.AddLongPathPrefix(fullSourceFileName);
408String tempDestFileName = Path.AddLongPathPrefix(fullDestFileName);
418internal static long GetLength(String path)
422String fullPath = LongPath.NormalizePath(path);
425String tempPath = Path.AddLongPathPrefix(fullPath);
447internal static void CreateDirectory(String path)
452String fullPath = LongPath.NormalizePath(path);
458String demandDir = GetDemandDir(fullPath, true);
467private unsafe static void InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj)
499String dir = fullPath.Substring(0, i + 1);
523String[] securityList = new String[stackDir.Count];
555String errorString = path;
559String name = stackDir[stackDir.Count - 1];
601String root = InternalGetDirectoryRoot(fullPath);
621internal static void Move(String sourceDirName, String destDirName)
628String fullsourceDirName = LongPath.NormalizePath(sourceDirName);
629String sourcePath = GetDemandDir(fullsourceDirName, false);
634String fulldestDirName = LongPath.NormalizePath(destDirName);
635String destPath = GetDemandDir(fulldestDirName, false);
643if (String.Compare(sourcePath, destPath, StringComparison.OrdinalIgnoreCase) == 0)
646String sourceRoot = LongPath.GetPathRoot(sourcePath);
647String destinationRoot = LongPath.GetPathRoot(destPath);
648if (String.Compare(sourceRoot, destinationRoot, StringComparison.OrdinalIgnoreCase) != 0)
652String tempSourceDirName = PathInternal.EnsureExtendedPrefix(sourceDirName);
653String tempDestDirName = PathInternal.EnsureExtendedPrefix(destDirName);
666__Error.WinIOError(hr, String.Empty);
673internal static void Delete(String path, bool recursive)
675String fullPath = LongPath.NormalizePath(path);
683private static void InternalDelete(String fullPath, String userPath, bool recursive)
685String demandPath;
694String longPath = Path.AddLongPathPrefix(fullPath);
721private static void DeleteHelper(String fullPath, String userPath, bool recursive, bool throwOnTopLevelDirectoryNotFound)
740String searchPath = null;
775String newFullPath = LongPath.InternalCombine(fullPath, data.cFileName);
776String newUserPath = LongPath.InternalCombine(userPath, data.cFileName);
796String mountPoint = LongPath.InternalCombine(fullPath, data.cFileName + Path.DirectorySeparatorChar);
820String reparsePoint = LongPath.InternalCombine(fullPath, data.cFileName);
844String fileName = LongPath.InternalCombine(fullPath, data.cFileName);
900internal static bool Exists(String path)
911String fullPath = LongPath.NormalizePath(path);
912String demandPath = GetDemandDir(fullPath, true);
934internal static bool InternalExists(String path)
944internal static bool InternalExists(String path, out int lastError) {
946String tempPath = Path.AddLongPathPrefix(path);
956private static String GetDemandDir(string fullPath, bool thisDirOnly)
958String demandPath;
979private static String InternalGetDirectoryRoot(String path)
system\io\path.cs (59)
114public static String ChangeExtension(String path, String extension) {
118String s = path;
228String dir = path.Substring(0, i);
300public static String GetExtension(String path) {
313return String.Empty;
318return String.Empty;
329public static String GetFullPath(String path) {
330String fullPath = GetFullPathInternal(path);
343internal static String UnsafeGetFullPath(String path)
345String fullPath = GetFullPathInternal(path);
361internal static String GetFullPathInternal(String path) {
374internal unsafe static String NormalizePath(String path, bool fullCheck)
382internal unsafe static String NormalizePath(String path, bool fullCheck, bool expandShortPaths)
390internal unsafe static String NormalizePath(String path, bool fullCheck, int maxPathLength) {
920String returnVal = newBuffer.ToString();
921if (String.Equals(returnVal, path, StringComparison.Ordinal))
1007public static String GetFileName(String path) {
1023public static String GetFileNameWithoutExtension(String path) {
1048public static String GetPathRoot(String path) {
1060public static String GetTempPath()
1067String path = sb.ToString();
1085public static String GetRandomFileName()
1118public static String GetTempFileName()
1126internal static String UnsafeGetTempFileName()
1134private static String InternalGetTempFileName(bool checkHost)
1136String path = GetTempPath();
1163public static bool HasExtension(String path) {
1186public static bool IsPathRooted(String path) {
1197public static String Combine(String path1, String path2) {
1207public static String Combine(String path1, String path2, String path3) {
1218public static String Combine(String path1, String path2, String path3, String path4) {
1230public static String Combine(params String[] paths) {
1310internal static String ToBase32StringSuitableForDirName(byte[] buff)
1372internal static void CheckSearchPattern(String searchPattern)
1397internal static String InternalCombine(String path1, String path2) {
system\io\pathhelper.cs (10)
188String.wstrcpy(m_arrayPtr, finalBuffer, result);
263String.wstrcpy(buffer, shortFileNameBuffer, r);
274String origName = sb.ToString();
275String tempName = origName;
324String.wstrcpy(savedName, m_arrayPtr + lastSlash + 1, lenSavedName);
333String.wstrcpy(m_arrayPtr + Length, savedName, lenSavedName);
338String savedName = m_sb.ToString(lastSlash + 1, lenSavedName);
351internal unsafe bool OrdinalStartsWith(String compareTo, bool ignoreCase) {
358String s = new String(m_arrayPtr, 0, compareTo.Length);
381public override String ToString() {
system\io\streamreader.cs (19)
181public StreamReader(String path)
201public StreamReader(String path, bool detectEncodingFromByteOrderMarks)
207public StreamReader(String path, Encoding encoding)
213public StreamReader(String path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
220public StreamReader(String path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize)
227internal StreamReader(String path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool checkHost)
426public override String ReadToEnd()
737public override String ReadLine()
759String s;
786public override Task<String> ReadLineAsync()
800Task<String> task = ReadLineAsyncInternal();
806private async Task<String> ReadLineAsyncInternal()
828String s;
867public override Task<String> ReadToEndAsync()
881Task<String> task = ReadToEndAsyncInternal();
887private async Task<String> ReadToEndAsyncInternal()
1287public override String ReadLine() {
1291public override String ReadToEnd()
1293return String.Empty;
system\io\streamwriter.cs (16)
155public StreamWriter(String path)
161public StreamWriter(String path, bool append)
167public StreamWriter(String path, bool append, Encoding encoding)
174public StreamWriter(String path, bool append, Encoding encoding, int bufferSize): this(path, append, encoding, bufferSize, true) {
180internal StreamWriter(String path, bool append, Encoding encoding, int bufferSize, bool checkHost)
213String callstack = null;
224private static Stream CreateFile(String path, bool append, bool checkHost) {
421public override void Write(String value)
512public override Task WriteAsync(String value)
542private static async Task WriteAsyncInternal(StreamWriter _this, String value,
732public override Task WriteLineAsync(String value)
871private String allocatedCallstack; // captures the callstack when this streamwriter was allocated
873internal MdaHelper(StreamWriter sw, String cs)
884String fileName = (streamWriter.stream is FileStream) ? ((FileStream)streamWriter.stream).NameInternal : "<unknown>";
885String callStack = allocatedCallstack;
890String message = Environment.GetResourceString("IO_StreamWriterBufferedDataLost", streamWriter.stream.GetType().FullName, fileName, callStack);
system\io\textwriter.cs (37)
99private const String InitialNewLine = "\r\n";
166public virtual String NewLine {
286public virtual void Write(String value) {
326public virtual void Write(String format, Object arg0)
328Write(String.Format(FormatProvider, format, arg0));
334public virtual void Write(String format, Object arg0, Object arg1)
336Write(String.Format(FormatProvider, format, arg0, arg1));
342public virtual void Write(String format, Object arg0, Object arg1, Object arg2)
344Write(String.Format(FormatProvider, format, arg0, arg1, arg2));
350public virtual void Write(String format, params Object[] arg)
352Write(String.Format(FormatProvider, format, arg));
452public virtual void WriteLine(String value) {
508public virtual void WriteLine(String format, Object arg0)
510WriteLine(String.Format(FormatProvider, format, arg0));
516public virtual void WriteLine (String format, Object arg0, Object arg1)
518WriteLine(String.Format(FormatProvider, format, arg0, arg1));
524public virtual void WriteLine (String format, Object arg0, Object arg1, Object arg2)
526WriteLine(String.Format(FormatProvider, format, arg0, arg1, arg2));
532public virtual void WriteLine (String format, params Object[] arg)
534WriteLine(String.Format(FormatProvider, format, arg));
549public virtual Task WriteAsync(String value)
581public virtual Task WriteLineAsync(String value)
633public override void Write(String value) {
641public override void WriteLine(String value) {
665public override String NewLine {
747public override void Write(String value) {
757public override void Write(String format, Object arg0) {
762public override void Write(String format, Object arg0, Object arg1) {
767public override void Write(String format, Object arg0, Object arg1, Object arg2) {
772public override void Write(String format, Object[] arg) {
837public override void WriteLine(String value) {
847public override void WriteLine(String format, Object arg0) {
852public override void WriteLine(String format, Object arg0, Object arg1) {
857public override void WriteLine(String format, Object arg0, Object arg1, Object arg2) {
862public override void WriteLine(String format, Object[] arg) {
882public override Task WriteAsync(String value)
906public override Task WriteLineAsync(String value)
system\number.cs (34)
296public static extern String FormatDecimal(Decimal value, String format, NumberFormatInfo info);
300public static extern String FormatDouble(double value, String format, NumberFormatInfo info);
304public static extern String FormatInt32(int value, String format, NumberFormatInfo info);
308public static extern String FormatUInt32(uint value, String format, NumberFormatInfo info);
312public static extern String FormatInt64(long value, String format, NumberFormatInfo info);
316public static extern String FormatUInt64(ulong value, String format, NumberFormatInfo info);
320public static extern String FormatSingle(float value, String format, NumberFormatInfo info);
649internal unsafe static Decimal ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) {
664internal unsafe static Double ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) {
677String sTrim = value.Trim();
698internal unsafe static Int32 ParseInt32(String s, NumberStyles style, NumberFormatInfo info) {
720internal unsafe static Int64 ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) {
941internal unsafe static Single ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt) {
954String sTrim = value.Trim();
978internal unsafe static UInt32 ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt) {
1001internal unsafe static UInt64 ParseUInt64(String value, NumberStyles options, NumberFormatInfo numfmt) {
1021private unsafe static void StringToNumber(String str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, Boolean parseDecimal) {
1037private static Boolean TrailingZeros(String s, Int32 index) {
1048internal unsafe static Boolean TryParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt, out Decimal result) {
1065internal unsafe static Boolean TryParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt, out Double result) {
1081internal unsafe static Boolean TryParseInt32(String s, NumberStyles style, NumberFormatInfo info, out Int32 result) {
1105internal unsafe static Boolean TryParseInt64(String s, NumberStyles style, NumberFormatInfo info, out Int64 result) {
1129internal unsafe static Boolean TryParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt, out Single result) {
1151internal unsafe static Boolean TryParseUInt32(String s, NumberStyles style, NumberFormatInfo info, out UInt32 result) {
1175internal unsafe static Boolean TryParseUInt64(String s, NumberStyles style, NumberFormatInfo info, out UInt64 result) {
1198internal static Boolean TryStringToNumber(String str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo numfmt, Boolean parseDecimal) {
1204internal unsafe static Boolean TryStringToNumber(String str, NumberStyles options, ref NumberBuffer number, StringBuilder sb, NumberFormatInfo numfmt, Boolean parseDecimal) {
system\parsenumbers.cs (8)
39public unsafe static long StringToLong(System.String s, int radix, int flags) {
45public unsafe extern static long StringToLong(System.String s, int radix, int flags, int* currPos);
48public unsafe static long StringToLong(System.String s, int radix, int flags, ref int currPos) {
55public unsafe static int StringToInt(System.String s, int radix, int flags) {
61public unsafe extern static int StringToInt(System.String s, int radix, int flags, int* currPos);
64public unsafe static int StringToInt(System.String s, int radix, int flags, ref int currPos) {
73public extern static String IntToString(int l, int radix, int width, char paddingChar, int flags);
78public extern static String LongToString(long l, int radix, int width, char paddingChar, int flags);
system\reflection\assembly.cs (98)
68public static String CreateQualifiedName(String assemblyName, String typeName)
125public static Assembly LoadFrom(String assemblyFile)
166public static Assembly ReflectionOnlyLoadFrom(String assemblyFile)
188public static Assembly LoadFrom(String assemblyFile,
211public static Assembly LoadFrom(String assemblyFile,
234public static Assembly LoadFrom(String assemblyFile,
278public static Assembly Load(String assemblyString)
293internal static Type GetType_Compat(String assemblyString, String typeName)
323public static Assembly ReflectionOnlyLoad(String assemblyString)
334public static Assembly Load(String assemblyString, Evidence assemblySecurity)
383public static Assembly LoadWithPartialName(String partialName)
392public static Assembly LoadWithPartialName(String partialName, Evidence securityEvidence)
579public static Assembly LoadFile(String path)
597public static Assembly LoadFile(String path,
685public virtual String CodeBase
698public virtual String EscapedCodeBase
725public virtual String FullName
748public virtual Type GetType(String name)
753public virtual Type GetType(String name, bool throwOnError)
758public virtual Type GetType(String name, bool throwOnError, bool ignoreCase)
827public virtual Stream GetManifestResourceStream(Type type, String name)
832public virtual Stream GetManifestResourceStream(String name)
964public Module LoadModule(String moduleName,
972public virtual Module LoadModule(String moduleName,
984public Object CreateInstance(String typeName)
995public Object CreateInstance(String typeName,
1007public virtual Object CreateInstance(String typeName,
1061public virtual Module GetModule(String name)
1073public virtual FileStream GetFile(String name)
1096public virtual String[] GetManifestResourceNames()
1108public virtual ManifestResourceInfo GetManifestResourceInfo(String resourceName)
1113public override String ToString()
1115String displayName = FullName;
1122public virtual String Location
1138public virtual String ImageRuntimeVersion
1275if (String.Compare(GetSimpleName(), name, StringComparison.OrdinalIgnoreCase) == 0)
1341private const String s_localFilePrefix = "file:";
1352internal String GetCodeBase(bool copiedName)
1354String codeBase = null;
1359public override String CodeBase
1369String codeBase = GetCodeBase(false);
1394String codeBase = GetCodeBase(copiedName);
1442public override String FullName
1483String name,
1489public override Type GetType(String name, bool throwOnError, bool ignoreCase)
1541public override Stream GetManifestResourceStream(Type type, String name)
1549public override Stream GetManifestResourceStream(String name)
1688internal static RuntimeAssembly InternalLoadFrom(String assemblyFile,
1717internal static RuntimeAssembly InternalLoad(String assemblyString,
1727internal static RuntimeAssembly InternalLoad(String assemblyString,
1753String assemblyString,
1846String codeBase = VerifyCodeBase(assemblyRef.CodeBase);
1849if (String.Compare( codeBase, 0, s_localFilePrefix, 0, 5, StringComparison.OrdinalIgnoreCase) != 0) {
1912String codeBase,
1940String codeBase,
1962private static unsafe RuntimeAssembly LoadWithPartialNameHack(String partialName, bool cropPublicKey)
2002internal static RuntimeAssembly LoadWithPartialNameInternal(String partialName, Evidence securityEvidence, ref StackCrawlMark stackMark)
2101AssemblyName ainfo = new AssemblyName((String)myEnum.Current);
2211String moduleName,
2220public override Module LoadModule(String moduleName, byte[] rawModule, byte[] rawSymbolStore)
2241private static extern void GetModule(RuntimeAssembly assembly, String name, ObjectHandleOnStack retModule);
2244public override Module GetModule(String name)
2260public override FileStream GetFile(String name)
2297private static extern String[] GetManifestResourceNames(RuntimeAssembly assembly);
2301public override String[] GetManifestResourceNames()
2338String resourceName,
2347public override ManifestResourceInfo GetManifestResourceInfo(String resourceName)
2350String fileName = null;
2370public override String Location
2380String location = null;
2400public override String ImageRuntimeVersion
2404String s = null;
2442private static String VerifyCodeBase(String codebase)
2468String name,
2478String nameSpace = type.Namespace;
2511String resourceName,
2517internal unsafe Stream GetManifestResourceStream(String name, ref StackCrawlMark stackMark, bool skipSecurityCheck)
2571String locale = null;
2595private void VerifyCodeBaseDiscovery(String codeBase)
2604(String.Compare( codeBase, 0, s_localFilePrefix, 0, 5, StringComparison.OrdinalIgnoreCase) == 0)) {
2617internal String GetSimpleName()
2775private static void DemandPermission(String codeBase, bool havePath,
2808private static IPermission CreateWebPermission( String codeBase )
2844private RuntimeModule OnModuleResolveEvent(String moduleName)
2887String name = GetSimpleName() + ".resources";
2902internal RuntimeAssembly InternalGetSatelliteAssembly(String name,
2992String codeBase = CodeBase;
2995(String.Compare(codeBase, 0, s_localFilePrefix, 0, 5, StringComparison.OrdinalIgnoreCase) == 0))
3044throw new FileNotFoundException(String.Format(culture, Environment.GetResourceString("IO.FileNotFound_FileName"), an.Name));
3054String name,
3055String codeBase,
3064String location = null;
3105dllNotFoundException = new FileNotFoundException(String.Format(culture,
3166static internal extern RuntimeAssembly nLoadFile(String path, Evidence evidence);
system\reflection\cominterfaces.cs (66)
34String ToString();
42String Name { get; }
55String FullName { get; }
56String Namespace { get; }
57String AssemblyQualifiedName { get; }
62Type GetInterface(String name, bool ignoreCase);
65EventInfo GetEvent(String name,BindingFlags bindingAttr);
69Type GetNestedType(String name, BindingFlags bindingAttr);
70MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr);
78MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
79MethodInfo GetMethod(String name, BindingFlags bindingAttr);
81FieldInfo GetField(String name, BindingFlags bindingAttr);
83PropertyInfo GetProperty(String name, BindingFlags bindingAttr);
84PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers);
86MemberInfo[] GetMember(String name, BindingFlags bindingAttr);
88Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters);
94Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args, CultureInfo culture);
95Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args);
105MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
106MethodInfo GetMethod(String name, Type[] types, ParameterModifier[] modifiers);
107MethodInfo GetMethod(String name, Type[] types);
108MethodInfo GetMethod(String name);
110FieldInfo GetField(String name);
112Type GetInterface(String name);
113EventInfo GetEvent(String name);
114PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers);
115PropertyInfo GetProperty(String name, Type returnType, Type[] types);
116PropertyInfo GetProperty(String name, Type[] types);
117PropertyInfo GetProperty(String name, Type returnType);
118PropertyInfo GetProperty(String name);
121Type GetNestedType(String name);
122MemberInfo[] GetMember(String name);
170String ToString();
177String CodeBase {
182String EscapedCodeBase { get; }
191String FullName { get; }
193Type GetType(String name);
194Type GetType(String name, bool throwOnError);
197Stream GetManifestResourceStream(Type type, String name);
198Stream GetManifestResourceStream(String name);
202FileStream GetFile(String name);
208String[] GetManifestResourceNames();
209ManifestResourceInfo GetManifestResourceInfo(String resourceName);
210String Location {
227Type GetType(String name, bool throwOnError, bool ignoreCase);
231Module LoadModule(String moduleName, byte[] rawModule);
232Module LoadModule(String moduleName, byte[] rawModule, byte[] rawSymbolStore);
234Object CreateInstance(String typeName);
235Object CreateInstance(String typeName, bool ignoreCase);
236Object CreateInstance(String typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes);
241Module GetModule(String name);
265String ToString();
273String Name { get; }
300String ToString();
308String Name { get; }
358String ToString();
366String Name { get; }
422String ToString();
430String Name { get; }
485String ToString();
493String Name { get; }
543String ToString();
551String Name { get; }
597String ToString();
605String Name { get; }
system\reflection\customattribute.cs (16)
506ctorArgs += String.Format(CultureInfo.CurrentCulture, i == 0 ? "{0}" : ", {0}", ConstructorArguments[i]);
510namedArgs += String.Format(CultureInfo.CurrentCulture, i == 0 && ctorArgs.Length == 0 ? "{0}" : ", {0}", NamedArguments[i]);
512return String.Format(CultureInfo.CurrentCulture, "[{0}({1}{2})]", Constructor.DeclaringType.FullName, ctorArgs, namedArgs);
644return String.Format(CultureInfo.CurrentCulture, "{0} = {1}", MemberInfo.Name, TypedValue.ToString(ArgumentType != typeof(object)));
804String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_CATypeResolutionFailed"), typeName));
919return String.Format(CultureInfo.CurrentCulture, typed ? "{0}" : "({1}){0}", Value, ArgumentType.FullName);
922return String.Format(CultureInfo.CurrentCulture, typed ? "null" : "({0})null", ArgumentType.Name);
925return String.Format(CultureInfo.CurrentCulture, "\"{0}\"", Value);
928return String.Format(CultureInfo.CurrentCulture, "'{0}'", Value);
931return String.Format(CultureInfo.CurrentCulture, "typeof({0})", ((Type)Value).FullName);
939result = String.Format(CultureInfo.CurrentCulture, @"new {0}[{1}] {{ ", elementType.IsEnum ? elementType.FullName : elementType.Name, array.Count);
942result += String.Format(CultureInfo.CurrentCulture, i == 0 ? "{0}" : ", {0}", array[i].ToString(elementType != typeof(object)));
947return String.Format(CultureInfo.CurrentCulture, typed ? "{0}" : "({1}){0}", Value, ArgumentType.Name);
1791String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString(
1822String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString(
2029throw new FormatException(String.Format(
system\reflection\emit\assemblybuilder.cs (96)
98public override String[] GetManifestResourceNames()
106public override FileStream GetFile(String name)
119public override Stream GetManifestResourceStream(Type type, String name)
124public override Stream GetManifestResourceStream(String name)
129public override ManifestResourceInfo GetManifestResourceInfo(String resourceName)
134public override String Location
145public override String CodeBase
161public override String ImageRuntimeVersion
299String dir,
550String dir,
595String name)
606String name,
617String name,
631String name,
786String name,
787String fileName)
809String name, // module name
810String fileName, // module file name
823String name, // module name
824String fileName, // module file name
847String name, // module name
848String fileName, // module file name
863if (!String.Equals(fileName, Path.GetFileName(fileName)))
1000String name,
1001String description,
1002String fileName)
1015String name,
1016String description,
1017String fileName,
1029String name,
1030String description,
1031String fileName,
1042if (!String.Equals(fileName, Path.GetFileName(fileName)))
1052String fullFileName;
1089String name,
1090String fileName)
1106String name,
1107String fileName,
1120String name,
1121String fileName,
1132if (!String.Equals(fileName, Path.GetFileName(fileName)))
1141String fullFileName;
1200public override String[] GetManifestResourceNames()
1208public override FileStream GetFile(String name)
1221public override Stream GetManifestResourceStream(Type type, String name)
1226public override Stream GetManifestResourceStream(String name)
1231public override ManifestResourceInfo GetManifestResourceInfo(String resourceName)
1236public override String Location
1247public override String ImageRuntimeVersion
1255public override String CodeBase
1292public override String FullName
1300public override Type GetType(String name, bool throwOnError, bool ignoreCase)
1348public override Module GetModule(String name)
1420String product,
1421String productVersion,
1422String company,
1423String copyright,
1424String trademark)
1438String product,
1439String productVersion,
1440String company,
1441String copyright,
1442String trademark)
1506public void DefineUnmanagedResource(String resourceFileName)
1521private void DefineUnmanagedResourceNoLock(String resourceFileName)
1559String name) // the name of module for the look up
1568String name) // the name of module for the look up
1735public void Save(String assemblyFileName) // assembly file name
1743public void Save(String assemblyFileName,
1765private void SaveNoLock(String assemblyFileName,
1772if (!String.Equals(assemblyFileName, Path.GetFileName(assemblyFileName)))
1781String strModFileName;
1790String tmpVersionFile = null;
1889String strFileVersion = m_assemblyData.m_nativeVersion.m_strFileVersion;
2193String name,
2194String filename,
2204String name,
2205String filename,
2238String strFileName,
2248static private extern int AddFile(RuntimeAssembly assembly, String strFileName);
2256String strFullFileName);
2263String strComTypeName,
2273String strComTypeName,
2284String strName,
2285String strFileName,
2286String strFullFileName,
2303static private extern void CreateVersionInfoResource(String filename, String title, String iconFilename, String description,
2304String copyright, String trademark, String company, String product,
2305String productVersion, String fileVersion, int lcid, bool isDll,
system\reflection\emit\assemblybuilderdata.cs (29)
39String strAssemblyName,
41String dir)
274internal void CheckResNameConflict(String strNewResName)
293internal void CheckNameConflict(String strNewModuleName)
318internal void CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)
344internal void CheckFileNameConflict(String strFileName)
353if (String.Compare(moduleBuilder.m_moduleData.m_strFileName, strFileName, StringComparison.OrdinalIgnoreCase) == 0)
366if (String.Compare(resWriter.m_strFileName, strFileName, StringComparison.OrdinalIgnoreCase) == 0)
380internal ModuleBuilder FindModuleWithFileName(String strFileName)
389if (String.Compare(moduleBuilder.m_moduleData.m_strFileName, strFileName, StringComparison.OrdinalIgnoreCase) == 0)
402internal ModuleBuilder FindModuleWithName(String strName)
411if (String.Compare(moduleBuilder.m_moduleData.m_strModuleName, strName, StringComparison.OrdinalIgnoreCase) == 0)
468internal String m_strAssemblyName;
477internal String m_strDir;
503internal String m_strResourceFileName;
542String strName,
543String strFileName,
544String strFullFileName,
561internal String m_strName;
562internal String m_strFileName;
563internal String m_strFullFileName;
585internal String m_strDescription;
586internal String m_strCompany;
587internal String m_strTitle;
588internal String m_strCopyright;
589internal String m_strTrademark;
590internal String m_strProduct;
591internal String m_strProductVersion;
592internal String m_strFileVersion;
system\reflection\emit\enumbuilder.cs (16)
41public FieldBuilder DefineLiteral(String literalName, Object literalValue)
78public override String Name {
94String name,
101String[] namedParameters)
118public override String FullName {
122public override String AssemblyQualifiedName {
128public override String Namespace {
149protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
163public override FieldInfo GetField(String name, BindingFlags bindingAttr)
173public override Type GetInterface(String name, bool ignoreCase)
183public override EventInfo GetEvent(String name, BindingFlags bindingAttr)
193protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
209public override Type GetNestedType(String name, BindingFlags bindingAttr)
214public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
396string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", szrank); // [,,]
405String name, // name of type
system\reflection\emit\generictypeparameterbuilder.cs (15)
38public override String ToString()
59public override String Name { get { return m_type.Name; } }
100string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", szrank); // [,,]
107public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) { throw new NotSupportedException(); }
113public override String FullName { get { return null; } }
115public override String Namespace { get { return null; } }
117public override String AssemblyQualifiedName { get { return null; } }
126protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
130public override FieldInfo GetField(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
134public override Type GetInterface(String name, bool ignoreCase) { throw new NotSupportedException(); }
138public override EventInfo GetEvent(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
142protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
148public override Type GetNestedType(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
150public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); }
system\reflection\emit\methodbuilder.cs (21)
31internal String m_strName; // The name of the method
72internal MethodBuilder(String name, MethodAttributes attributes, CallingConventions callingConvention,
78internal MethodBuilder(String name, MethodAttributes attributes, CallingConventions callingConvention,
89private void Init(String name, MethodAttributes attributes, CallingConventions callingConvention,
511public override String ToString()
524public override String Name
847public ParameterBuilder DefineParameter(int position, ParameterAttributes attributes, String strParamName)
884public SymCustomAttr(String name, byte[] data)
889public String m_name;
893public void SetSymCustomAttribute(String name, byte[] data)
1161public String Signature
1275internal String[] m_strName;
1281internal String[] m_namespace;
1300m_namespace = new String[InitialSize];
1304String [] strTemp = new String [checked(m_iNameSpaceCount * 2)];
1315m_strName = new String[InitialSize];
1338String [] strTemp = new String [newSize];
1352internal void AddLocalSymInfo(String strName,byte[] signature,int slot,int startOffset,int endOffset)
1364internal void AddUsingNamespace(String strNamespace)
system\reflection\emit\modulebuilder.cs (91)
65internal static extern IntPtr nCreateISymWriterForDynamicModule(Module module, String filename);
70static internal String UnmangleTypeName(String typeName)
127internal void CheckTypeNameConflict(String strTypeName, Type enclosingType)
138private Type GetType(String strFormat, Type baseType)
142if (strFormat == null || strFormat.Equals(String.Empty))
168private extern static int GetTypeRef(RuntimeModule module, String strFullName, RuntimeModule refedModule, String strRefedModuleFileName, int tkResolution);
186private extern static int GetMemberRefFromSignature(RuntimeModule module, int tr, String methodName, byte[] signature, int length);
189private int GetMemberRefFromSignature(int tr, String methodName, byte[] signature, int length)
271private extern static int GetArrayMethodToken(RuntimeModule module, int tkTypeSpec, String methodName, byte[] signature, int sigLength);
277private extern static int GetStringConstant(RuntimeModule module, String str, int length);
289private extern static void SavePEFile(RuntimeModule module, String fileName, int entryPoint, int isExe, bool isManifestFile);
296RuntimeModule module, String strName,
304private extern static void SetModuleName(RuntimeModule module, String strModuleName);
318String strFilename,
358internal virtual Type FindTypeBuilderWithName(String strTypeName, bool ignoreCase)
364if (String.Compare(name, strTypeName, (StringComparison.OrdinalIgnoreCase)) == 0)
395internal void PreSave(String fileName,
401throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture,
425throw new NotSupportedException(String.Format(CultureInfo.InvariantCulture,
438internal void Save(String fileName, bool isAssemblyFile, PortableExecutableKinds portableExecutableKind,
482private int GetTypeRefNested(Type type, Module refedModule, String strRefedModuleFileName)
488String typeName = type.FullName;
591internal void Init(String strModuleName, String strFileName, int tkFile)
865public override Type GetType(String className)
871public override Type GetType(String className, bool ignoreCase)
877public override Type GetType(String className, bool throwOnError, bool ignoreCase)
885private Type GetTypeNoLock(String className, bool throwOnError, bool ignoreCase)
902String baseName = null;
903String parameters = null;
983public override String FullyQualifiedName
994String fullyQualifiedName = m_moduleData.m_strFileName;
1081public override FieldInfo GetField(String name, BindingFlags bindingAttr)
1091protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
1098public override String ScopeName
1108public override String Name
1137public TypeBuilder DefineType(String name)
1148public TypeBuilder DefineType(String name, TypeAttributes attr)
1159public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent)
1177public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, int typesize)
1192public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize)
1204public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
1215private TypeBuilder DefineTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces, PackingSize packingSize, int typesize)
1227public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, PackingSize packsize)
1238private TypeBuilder DefineTypeNoLock(String name, TypeAttributes attr, Type parent, PackingSize packsize)
1252public EnumBuilder DefineEnum(String name, TypeAttributes visibility, Type underlyingType)
1273private EnumBuilder DefineEnumNoLock(String name, TypeAttributes visibility, Type underlyingType)
1284public IResourceWriter DefineResource(String name, String description)
1292public IResourceWriter DefineResource(String name, String description, ResourceAttributes attribute)
1303private IResourceWriter DefineResourceNoLock(String name, String description, ResourceAttributes attribute)
1323ResWriterData resWriterData = new ResWriterData( resWriter, stream, name, String.Empty, String.Empty, attribute);
1340public void DefineManifestResource(String name, Stream stream, ResourceAttributes attribute)
1357private void DefineManifestResourceNoLock(String name, Stream stream, ResourceAttributes attribute)
1374ResWriterData resWriterData = new ResWriterData( null, stream, name, String.Empty, String.Empty, attribute);
1419public void DefineUnmanagedResource(String resourceFileName)
1430internal void DefineUnmanagedResourceFileInternalNoLock(String resourceFileName)
1462public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
1469public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, CallingConventions callingConvention,
1477public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, CallingConventions callingConvention,
1489private MethodBuilder DefineGlobalMethodNoLock(String name, MethodAttributes attributes, CallingConventions callingConvention,
1522public MethodBuilder DefinePInvokeMethod(String name, String dllName, MethodAttributes attributes,
1534public MethodBuilder DefinePInvokeMethod(String name, String dllName, String entryName, MethodAttributes attributes,
1550private MethodBuilder DefinePInvokeMethodNoLock(String name, String dllName, String entryName, MethodAttributes attributes,
1595public FieldBuilder DefineInitializedData(String name, byte[] data, FieldAttributes attributes)
1611private FieldBuilder DefineInitializedDataNoLock(String name, byte[] data, FieldAttributes attributes)
1630public FieldBuilder DefineUninitializedData(String name, int size, FieldAttributes attributes)
1643private FieldBuilder DefineUninitializedDataNoLock(String name, int size, FieldAttributes attributes)
1748return new TypeToken(GetTypeRefNested(type, this, String.Empty));
1769String strRefedModuleFileName = String.Empty;
1788public TypeToken GetTypeToken(String name)
2036public MethodToken GetArrayMethodToken(Type arrayClass, String methodName, CallingConventions callingConvention,
2046private MethodToken GetArrayMethodTokenNoLock(Type arrayClass, String methodName, CallingConventions callingConvention,
2082public MethodInfo GetArrayMethod(Type arrayClass, String methodName, CallingConventions callingConvention,
2205public StringToken GetStringConstant(String str)
2325public ISymbolDocumentWriter DefineDocument(String url, Guid language, Guid languageVendor, Guid documentType)
2341private ISymbolDocumentWriter DefineDocumentNoLock(String url, Guid language, Guid languageVendor, Guid documentType)
2412public void SetSymCustomAttribute(String name, byte[] data)
2420private void SetSymCustomAttributeNoLock(String name, byte[] data)
system\reflection\emit\symboltype.cs (16)
321string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", szrank); // [,,]
340public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target,
341Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
374public override String Name
379String sFormat = new String(m_bFormat);
388public override String FullName
396public override String AssemblyQualifiedName
404public override String ToString()
409public override String Namespace
432protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
443public override FieldInfo GetField(String name, BindingFlags bindingAttr)
453public override Type GetInterface(String name,bool ignoreCase)
463public override EventInfo GetEvent(String name,BindingFlags bindingAttr)
473protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
489public override Type GetNestedType(String name, BindingFlags bindingAttr)
494public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
system\reflection\emit\typebuilder.cs (76)
197internal static extern int DefineMethod(RuntimeModule module, int tkParent, String name, byte[] signature, int sigLength,
210internal static extern int DefineField(RuntimeModule module, int tkParent, String name, byte[] signature, int sigLength,
251internal static extern void SetPInvokeData(RuntimeModule module, String DllName, String name, int token, int linkFlags);
257internal static extern int DefineProperty(RuntimeModule module, int tkParent, String name, PropertyAttributes attributes,
264internal static extern int DefineEvent(RuntimeModule module, int tkParent, String name, EventAttributes attributes, int tkEventType);
290ParameterAttributes iParamAttributes, String strParamName);
497if (type == typeof(String))
534private String m_strName;
535private String m_strNameSpace;
536private String m_strFullQualName;
603String name,
616private void Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module,
671m_strNameSpace = String.Empty;
737String name, String dllName, String importName, MethodAttributes attributes, CallingConventions callingConvention,
760String name, String dllName, String importName, MethodAttributes attributes, CallingConventions callingConvention,
857private FieldBuilder DefineDataHelper(String name, byte[] data, int size, FieldAttributes attributes)
859String strValueClassName;
946String fullname, int tkParent, TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens);
953String name, int tkParent, GenericParameterAttributes attributes, int position, int[] constraints);
1025public override String ToString()
1045public override String Name
1075public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target,
1076Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
1096public override String FullName
1107public override String Namespace
1112public override String AssemblyQualifiedName
1145protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
1171public override FieldInfo GetField(String name, BindingFlags bindingAttr)
1189public override Type GetInterface(String name,bool ignoreCase)
1213public override EventInfo GetEvent(String name,BindingFlags bindingAttr)
1231protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
1255public override Type GetNestedType(String name, BindingFlags bindingAttr)
1264public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
1500string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", szrank); // [,,]
1651public MethodBuilder DefineMethod(String name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
1658public MethodBuilder DefineMethod(String name, MethodAttributes attributes)
1665public MethodBuilder DefineMethod(String name, MethodAttributes attributes, CallingConventions callingConvention)
1672public MethodBuilder DefineMethod(String name, MethodAttributes attributes, CallingConventions callingConvention,
1680public MethodBuilder DefineMethod(String name, MethodAttributes attributes, CallingConventions callingConvention,
1694private MethodBuilder DefineMethodNoLock(String name, MethodAttributes attributes, CallingConventions callingConvention,
1877String name;
1907public MethodBuilder DefinePInvokeMethod(String name, String dllName, MethodAttributes attributes,
1922public MethodBuilder DefinePInvokeMethod(String name, String dllName, String entryName, MethodAttributes attributes,
1937public MethodBuilder DefinePInvokeMethod(String name, String dllName, String entryName, MethodAttributes attributes,
1953public TypeBuilder DefineNestedType(String name)
1963public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
1976public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent)
1985public TypeBuilder DefineNestedType(String name, TypeAttributes attr)
1998public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, int typeSize)
2011public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, PackingSize packSize)
2024public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize)
2033private TypeBuilder DefineNestedTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces, PackingSize packSize, int typeSize)
2041public FieldBuilder DefineField(String fieldName, Type type, FieldAttributes attributes)
2047public FieldBuilder DefineField(String fieldName, Type type, Type[] requiredCustomModifiers,
2057private FieldBuilder DefineFieldNoLock(String fieldName, Type type, Type[] requiredCustomModifiers,
2081public FieldBuilder DefineInitializedData(String name, byte[] data, FieldAttributes attributes)
2090private FieldBuilder DefineInitializedDataNoLock(String name, byte[] data, FieldAttributes attributes)
2108public FieldBuilder DefineUninitializedData(String name, int size, FieldAttributes attributes)
2117private FieldBuilder DefineUninitializedDataNoLock(String name, int size, FieldAttributes attributes)
2128public PropertyBuilder DefineProperty(String name, PropertyAttributes attributes, Type returnType, Type[] parameterTypes)
2133public PropertyBuilder DefineProperty(String name, PropertyAttributes attributes,
2140public PropertyBuilder DefineProperty(String name, PropertyAttributes attributes,
2150public PropertyBuilder DefineProperty(String name, PropertyAttributes attributes, CallingConventions callingConvention,
2162private PropertyBuilder DefinePropertyNoLock(String name, PropertyAttributes attributes, CallingConventions callingConvention,
2212public EventBuilder DefineEvent(String name, EventAttributes attributes, Type eventtype)
2221private EventBuilder DefineEventNoLock(String name, EventAttributes attributes, Type eventtype)
system\reflection\emit\typebuilderinstantiation.cs (15)
65public override String ToString()
76public override String Name { get { return m_type.Name; } }
104string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", comma);
108public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) { throw new NotSupportedException(); }
111public override String FullName
120public override String Namespace { get { return m_type.Namespace; } }
121public override String AssemblyQualifiedName { get { return TypeNameBuilder.ToString(this, TypeNameBuilder.Format.AssemblyQualifiedName); } }
175protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
177public override FieldInfo GetField(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
179public override Type GetInterface(String name, bool ignoreCase) { throw new NotSupportedException(); }
181public override EventInfo GetEvent(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
183protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
186public override Type GetNestedType(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
187public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); }
system\reflection\mdimport.cs (8)
253public override string ToString() { return String.Format(CultureInfo.InvariantCulture, "0x{0:x8}", Value); }
407private static extern String _GetDefaultValue(IntPtr scope, int mdToken, out long value, out int length, out int corElementType);
409public String GetDefaultValue(int mdToken, out long value, out int length, out CorElementType corElementType)
412String stringVal;
423public unsafe String GetUserString(int mdToken)
724out String importName,
725out String importDll)
756return String.Format(CultureInfo.CurrentCulture, "MetadataException HResult = {0:x}.", m_hr);
system\reflection\memberinfoserializationholder.cs (17)
21public static void GetSerializationInfo(SerializationInfo info, String name, RuntimeType reflectedClass, String signature, MemberTypes type)
28String name,
30String signature,
31String signature2,
39String assemblyName = reflectedClass.Module.Assembly.FullName;
40String typeName = reflectedClass.FullName;
43info.AddValue("Name", name, typeof(String));
44info.AddValue("AssemblyName", assemblyName, typeof(String));
45info.AddValue("ClassName", typeName, typeof(String));
46info.AddValue("Signature", signature, typeof(String));
47info.AddValue("Signature2", signature2, typeof(String));
54private String m_memberName;
60private String m_signature;
61private String m_signature2;
73String assemblyName = info.GetString("AssemblyName");
74String typeName = info.GetString("ClassName");
system\reflection\module.cs (28)
127public override String ToString()
289public virtual Type GetType(String className, bool ignoreCase)
295public virtual Type GetType(String className) {
300public virtual Type GetType(String className, bool throwOnError, bool ignoreCase)
305public virtual String FullyQualifiedName
404public FieldInfo GetField(String name)
409public virtual FieldInfo GetField(String name, BindingFlags bindingAttr)
439String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
457public MethodInfo GetMethod(String name, Type[] types)
475public MethodInfo GetMethod(String name)
485protected virtual MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
491public virtual String ScopeName
506public virtual String Name
597private extern static void GetType(RuntimeModule module, String className, bool ignoreCase, bool throwOnError, ObjectHandleOnStack type);
750String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
914String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
918String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
924String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
957protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
963internal MethodInfo GetMethodInternal(String name, BindingFlags bindingAttr, Binder binder,
1066public override Type GetType(String className, bool throwOnError, bool ignoreCase)
1080String fullyQualifiedName = null;
1085public override String FullyQualifiedName
1096String fullyQualifiedName = GetFullyQualifiedName();
1161public override FieldInfo GetField(String name, BindingFlags bindingAttr)
1180public override String ScopeName
1191public override String Name
1198String s = GetFullyQualifiedName();
system\reflection\typedelegator.cs (13)
48public override Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder,Object target,
49Object[] args,ParameterModifier[] modifiers,CultureInfo culture,String[] namedParameters)
66public override String Name {
70public override String FullName {
74public override String Namespace {
78public override String AssemblyQualifiedName {
100protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
116public override FieldInfo GetField(String name, BindingFlags bindingAttr)
126public override Type GetInterface(String name, bool ignoreCase)
136public override EventInfo GetEvent(String name,BindingFlags bindingAttr)
146protected override PropertyInfo GetPropertyImpl(String name,BindingFlags bindingAttr,Binder binder,
170public override Type GetNestedType(String name, BindingFlags bindingAttr)
175public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
system\resources\__fastresourcecomparer.cs (25)
24internal sealed class FastResourceComparer : IComparer, IEqualityComparer, IComparer<String>, IEqualityComparer<String>
31String s = (String) key;
35public int GetHashCode(String key)
43internal static int HashFunction(String key)
58String sa = (String)a;
59String sb = (String)b;
60return String.CompareOrdinal(sa, sb);
63public int Compare(String a, String b)
65return String.CompareOrdinal(a, b);
68public bool Equals(String a, String b)
70return String.Equals(a, b);
76String sa = (String)a;
77String sb = (String)b;
78return String.Equals(sa,sb);
84public unsafe static int CompareOrdinal(String a, byte[] bytes, int bCharLength)
113public static int CompareOrdinal(byte[] bytes, int aCharLength, String b)
121internal unsafe static int CompareOrdinal(byte* a, int byteLen, String b)
system\resources\manifestbasedresourcegroveler.cs (23)
62public ResourceSet GrovelForResourceSet(CultureInfo culture, Dictionary<String, ResourceSet> localResourceSets, bool tryParents, bool createIfNotExists, ref StackCrawlMark stackMark)
104String fileName = _mediator.GetResourceFileName(lookForCulture);
181public bool HasNeutralResources(CultureInfo culture, String defaultResName)
183String resName = defaultResName;
186String[] resourceFiles = _mediator.MainAssembly.GetManifestResourceNames();
187foreach(String s in resourceFiles)
301String readerTypeName = null, resSetTypeName = null;
430private Stream GetManifestResourceStream(RuntimeAssembly satellite, String fileName, ref StackCrawlMark stackMark)
455private Stream CaseInsensitiveManifestResourceStreamLookup(RuntimeAssembly satellite, String name)
463String nameSpace = _mediator.LocationInfo.Namespace;
473String givenName = sb.ToString();
475String canonicalName = null;
476foreach (String existingName in satellite.GetManifestResourceNames())
547String satAssemblyName = GetSatelliteAssemblyName();
603private bool CanUseDefaultResourceClasses(String readerTypeName, String resSetTypeName)
632private String GetSatelliteAssemblyName()
634String satAssemblyName = _mediator.MainAssembly.GetSimpleName();
642String satAssemName = _mediator.MainAssembly.GetSimpleName() + ".resources.dll";
660String missingCultureName = _mediator.NeutralResourcesCulture.Name;
669private void HandleResourceStreamMissing(String fileName)
683String resName = String.Empty;
system\resources\resourcemanager.cs (75)
57public virtual String GetString(String stringName, String startingCulture, String neutralResourcesCulture){return null;}
178public String lastCultureName;
182protected String BaseNameField;
191private Dictionary <String,ResourceSet> _resourceSets;
192private String moduleDir; // For assembly-ignorant directory location
263internal static readonly String ResReaderTypeName = typeof(ResourceReader).FullName;
264internal static readonly String ResSetTypeName = typeof(RuntimeResourceSet).FullName;
265internal static readonly String MscorlibName = typeof(ResourceReader).Assembly.FullName;
266internal const String ResFileExtension = ".resources";
309private ResourceManager(String baseName, String resourceDir, Type usingResourceSet) {
330_resourceSets = new Dictionary<String, ResourceSet>();
340String defaultResName = GetResourceFileName(culture);
353public ResourceManager(String baseName, Assembly assembly)
384public ResourceManager(String baseName, Assembly assembly, Type usingResourceSet)
457_resourceSets = new Dictionary<String, ResourceSet>();
505_resourceSets = new Dictionary<String,ResourceSet>();
521String defaultResName = GetResourceFileName(culture);
527String outputResName = defaultResName;
542public virtual String BaseName {
582Dictionary<String, ResourceSet> localResourceSets = _resourceSets;
586_resourceSets = new Dictionary<String,ResourceSet>();
618public static ResourceManager CreateFileBasedResourceManager(String baseName, String resourceDir, Type usingResourceSet)
633protected virtual String GetResourceFileName(CultureInfo culture) {
665Dictionary<String,ResourceSet> localResourceSets = _resourceSets;
705Dictionary<String,ResourceSet> localResourceSets = _resourceSets;
764Dictionary<String, ResourceSet> localResourceSets = _resourceSets;
843private static void AddResourceSet(Dictionary<String,ResourceSet> localResourceSets, String cultureName, ref ResourceSet rs)
877String v = null;
881v = (String)data.ConstructorArguments[0].Value;
931internal static bool CompareNames(String asmTypeName1,
932String typeName2,
943if (String.Compare(asmTypeName1, 0, typeName2, 0, typeName2.Length, StringComparison.Ordinal) != 0)
954if (String.Compare(an1.Name, asmName2.Name, StringComparison.OrdinalIgnoreCase) != 0)
958if (String.Compare(an1.Name, "mscorlib", StringComparison.OrdinalIgnoreCase) == 0)
989private string GetStringFromPRI(String stringName, String startingCulture, String neutralResourcesCulture) {
1004String.IsNullOrEmpty(startingCulture) ? null : startingCulture,
1005String.IsNullOrEmpty(neutralResourcesCulture) ? null : neutralResourcesCulture);
1117String reswFilename = _locationInfo == null ? BaseNameField : _locationInfo.FullName;
1129reswFilename = String.Empty;
1241public virtual String GetString(String name) {
1249public virtual String GetString(String name, CultureInfo culture) {
1304String value = last.GetString(name, _ignoreCase);
1321String value = rs.GetString(name, _ignoreCase);
1354public virtual Object GetObject(String name) {
1361public virtual Object GetObject(String name, CultureInfo culture) {
1365private Object GetObject(String name, CultureInfo culture, bool wrapUnmanagedMemStream)
1458public UnmanagedMemoryStream GetStream(String name) {
1463public UnmanagedMemoryStream GetStream(String name, CultureInfo culture) {
1489String[] installedSatellites = (String[]) _installedSatelliteInfo[MainAssembly.FullName];
1519String fileName = AppDomain.CurrentDomain.FusionStore.ConfigurationFileInternal;
1538String queryPath = "/configuration/satelliteassemblies";
1567if (!String.Equals(assemblyNode.Name, "assembly"))
1574String assemblyName = (String) de.Value;
1575if (!String.Equals(de.Key, "name") || String.IsNullOrEmpty(assemblyName) || assemblyNode.Attributes.Count > 1)
1583String[] satellites = new String[list.Count];
1585String cultureName = (String)list[i];
1620internal String ModuleDir
1636internal String BaseNameField
1647internal String GetResourceFileName(CultureInfo culture)
1688internal String BaseName
system\resources\resourcereader.cs (28)
89internal Dictionary<String, ResourceLocator> _resCache;
132private static readonly String[] TypesSafeForDeserialization = {
164public ResourceReader(String fileName)
166_resCache = new Dictionary<String, ResourceLocator>(FastResourceComparer.Default);
188_resCache = new Dictionary<String, ResourceLocator>(FastResourceComparer.Default);
202internal ResourceReader(Stream stream, Dictionary<String, ResourceLocator> resCache)
321internal int FindPosForResource(String name)
403private unsafe bool CompareStringEqualsName(String name)
441private unsafe String AllocateStringForNameIndex(int index, out int dataOffset)
459String s = null;
530internal String LoadString(int pos)
534String s = null;
539if (FindType(typeIndex) != typeof(String))
546String typeString;
573typeCode = (o is String) ? ResourceTypeCode.String : ResourceTypeCode.StartOfUserTypes;
615if (type == typeof(String))
909String readerType = _store.ReadString();
1072BCLDebug.Log("RESMGRFILEFORMAT", String.Format(CultureInfo.InvariantCulture, "ReadResources: _nameOffset = 0x{0:x} _dataOffset = 0x{1:x}", _nameSectionOffset, _dataSectionOffset));
1087String typeName = _store.ReadString();
1121String typeName;
1131String typePart;
1164foreach(String safeType in TypesSafeForDeserialization) {
1184public void GetResourceData(String resourceName, out String resourceType, out byte[] resourceData)
1245private String TypeNameFromTypeCode(ResourceTypeCode typeCode)
1249Contract.Assert(!String.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers.");
1307foreach(String safeType in TypesSafeForDeserialization) {
1395String key;
system\resources\resourcewriter.cs (33)
49private Func<Type, String> typeConverter;
52public Func<Type, String> TypeNameConverter
69internal String TypeName;
72internal PrecannedResource(String typeName, byte[] data)
96private Dictionary<String, Object> _resourceList;
98private Dictionary<String, Object> _caseInsensitiveDups;
99private Dictionary<String, PrecannedResource> _preserializedData;
104public ResourceWriter(String fileName)
110_resourceList = new Dictionary<String, Object>(_ExpectedNumberOfResources, FastResourceComparer.Default);
111_caseInsensitiveDups = new Dictionary<String, Object>(StringComparer.OrdinalIgnoreCase);
122_resourceList = new Dictionary<String, Object>(_ExpectedNumberOfResources, FastResourceComparer.Default);
123_caseInsensitiveDups = new Dictionary<String, Object>(StringComparer.OrdinalIgnoreCase);
129public void AddResource(String name, String value)
145public void AddResource(String name, Object value)
170public void AddResource(String name, Stream value)
185public void AddResource(String name, Stream value, bool closeAfterWrite)
196private void AddResourceInternal(String name, Stream value, bool closeAfterWrite)
219public void AddResource(String name, byte[] value)
232public void AddResourceData(String name, String typeName, byte[] serializedData)
247_preserializedData = new Dictionary<String, PrecannedResource>(FastResourceComparer.Default);
291List<String> typeNames = new List<String>();
352String tempFile = null;
402foreach (KeyValuePair<String, PrecannedResource> entry in _preserializedData)
410nameHashes[curNameNumber] = FastResourceComparer.HashFunction((String)items.Key);
412names.Write((String)items.Key); // key
525private ResourceTypeCode FindTypeCode(Object value, List<String> types)
531if (type == typeof(String))
571String typeName;
607writer.Write((String) value);
719Contract.Assert(typeCode >= ResourceTypeCode.StartOfUserTypes, String.Format(CultureInfo.InvariantCulture, "ResourceReader: Unsupported ResourceTypeCode in .resources file! {0}", typeCode));
system\resources\runtimeresourceset.cs (21)
171private Dictionary<String, ResourceLocator> _resCache;
183private Dictionary<String, ResourceLocator> _caseInsensitiveTable;
192internal RuntimeResourceSet(String fileName) : base(false)
195_resCache = new Dictionary<String, ResourceLocator>(FastResourceComparer.Default);
215_resCache = new Dictionary<String, ResourceLocator>(FastResourceComparer.Default);
267public override String GetString(String key)
270return (String) o;
273public override String GetString(String key, bool ignoreCase)
276return (String) o;
279public override Object GetObject(String key)
284public override Object GetObject(String key, bool ignoreCase)
289private Object GetObject(String key, bool ignoreCase, bool isString)
358_caseInsensitiveTable = new Dictionary<String, ResourceLocator>(StringComparer.OrdinalIgnoreCase);
368String readKey = (String) entry.Key;
384String currentKey = (String) en.Key;
415private Object ResolveResourceLocator(ResourceLocator resLocation, String key, Dictionary<String, ResourceLocator> copyOfCache, bool keyInWrongCase)
system\rttype.cs (47)
1231Dictionary<String, RuntimeEventInfo> csEventInfos = filter.CaseSensitive() ? null :
1232new Dictionary<String, RuntimeEventInfo>();
1260Filter filter, RuntimeType declaringType, Dictionary<String, RuntimeEventInfo> csEventInfos, ref ListBuilder<RuntimeEventInfo> list)
1338Dictionary<String, List<RuntimePropertyInfo>> csPropertyInfos = filter.CaseSensitive() ? null :
1339new Dictionary<String, List<RuntimePropertyInfo>>();
1364Dictionary<String, List<RuntimePropertyInfo>> csPropertyInfos,
1966internal static RuntimeType GetType(String typeName, bool throwOnError, bool ignoreCase, bool reflectionOnly,
2049throw new ArgumentException(String.Format(
2077throw new ArgumentException(String.Format(
2099throw new ArgumentException(String.Format(
2169throw new ArgumentException(String.Format(
2716private static readonly RuntimeType StringType = (RuntimeType)typeof(System.String);
2804String name, BindingFlags bindingAttr, CallingConventions callConv,
2853String name, BindingFlags bindingAttr, Type[] types, bool allowPrefixLookup)
2968private ListBuilder<EventInfo> GetEventCandidates(String name, BindingFlags bindingAttr, bool allowPrefixLookup)
2992private ListBuilder<FieldInfo> GetFieldCandidates(String name, BindingFlags bindingAttr, bool allowPrefixLookup)
3016private ListBuilder<Type> GetNestedTypeCandidates(String fullname, BindingFlags bindingAttr, bool allowPrefixLookup)
3211String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv,
3281String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
3321public override EventInfo GetEvent(String name, BindingFlags bindingAttr)
3350public override FieldInfo GetField(String name, BindingFlags bindingAttr)
3390public override Type GetInterface(String fullname, bool ignoreCase)
3426public override Type GetNestedType(String fullname, BindingFlags bindingAttr)
3457public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
3833public override String FullName
3841public override String AssemblyQualifiedName
3855public override String Namespace
4065String[] ret = Enum.InternalGetNames(this);
4068String[] retVal = new String[ret.Length];
4443throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this));
4485throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this));
4495String defaultMemberName = GetDefaultMemberName();
4513String name, BindingFlags bindingFlags, Binder binder, Object target,
4514Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
5001public override String ToString()
5070public override String Name
5316throw new NotSupportedException(String.Format(CultureInfo.CurrentCulture,
5577String name, BindingFlags invokeAttr, Object target, Object[] args,
5578bool[] byrefModifiers, int culture, String[] namedParameters);
5584internal static extern Type GetTypeFromProgIDImpl(String progID, String server, bool throwOnError);
5589internal static extern Type GetTypeFromCLSIDImpl(Guid clsid, String server, bool throwOnError);
5608private Object ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, int[] aWrapperTypes, ref MessageData msgData)
5735wrapperCons = wrapperType.GetConstructor(new Type[] {typeof(String)});
5747newArray[currElem] = wrapperCons.Invoke(new Object[] {(String)oldArray.GetValue(currElem)});
5776aArgs[i] = new BStrWrapper((String)aArgs[i]);
system\runtime\interopservices\ComTypes\itypeinfo.cs (10)
192public String lpstrSchema;
227[MarshalAs(UnmanagedType.BStr)] public String bstrSource;
228[MarshalAs(UnmanagedType.BStr)] public String bstrDescription;
229[MarshalAs(UnmanagedType.BStr)] public String bstrHelpFile;
318void GetNames(int memid, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2), Out] String[] rgBstrNames, int cMaxNames, out int pcNames);
321void GetIDsOfNames([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1), In] String[] rgszNames, int cNames, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), Out] int[] pMemId);
323void GetDocumentation(int index, out String strName, out String strDocString, out int dwHelpContext, out String strHelpFile);
328void GetMops(int memid, out String pBstrMops);
system\runtime\interopservices\ComTypes\itypeinfo2.cs (8)
29new void GetNames(int memid, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2), Out] String[] rgBstrNames, int cMaxNames, out int pcNames);
32new void GetIDsOfNames([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1), In] String[] rgszNames, int cNames, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), Out] int[] pMemId);
34new void GetDocumentation(int index, out String strName, out String strDocString, out int dwHelpContext, out String strHelpFile);
39new void GetMops(int memid, out String pBstrMops);
57void GetDocumentation2(int memid, out String pbstrHelpString, out int pdwHelpStringContext, out String pbstrHelpStringDll);
system\runtime\interopservices\ComTypes\itypelib.cs (5)
63void GetDocumentation(int index, out String strName, out String strDocString, out int dwHelpContext, out String strHelpFile);
65bool IsName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal);
66void FindName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal, [MarshalAs(UnmanagedType.LPArray), Out] ITypeInfo[] ppTInfo, [MarshalAs(UnmanagedType.LPArray), Out] int[] rgMemId, ref Int16 pcFound);
system\runtime\interopservices\ComTypes\itypelib2.cs (7)
32new void GetDocumentation(int index, out String strName, out String strDocString, out int dwHelpContext, out String strHelpFile);
34new bool IsName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal);
35new void FindName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal, [MarshalAs(UnmanagedType.LPArray), Out] ITypeInfo[] ppTInfo, [MarshalAs(UnmanagedType.LPArray), Out] int[] rgMemId, ref Int16 pcFound);
40void GetDocumentation2(int index, out String pbstrHelpString, out int pdwHelpStringContext, out String pbstrHelpStringDll);
system\runtime\interopservices\marshal.cs (47)
110private const String s_strConvertedTypeInfoAssemblyName = "InteropDynamicTypes";
111private const String s_strConvertedTypeInfoAssemblyTitle = "Interop Dynamic Types";
112private const String s_strConvertedTypeInfoAssemblyDesc = "Type dynamically generated from ITypeInfo's";
113private const String s_strConvertedTypeInfoNameSpace = "InteropDynamicTypes";
124unsafe public static String PtrToStringAnsi(IntPtr ptr)
144unsafe public static String PtrToStringAnsi(IntPtr ptr, int len)
155unsafe public static String PtrToStringUni(IntPtr ptr, int len)
166public static String PtrToStringAuto(IntPtr ptr, int len)
173unsafe public static String PtrToStringUni(IntPtr ptr)
187public static String PtrToStringAuto(IntPtr ptr)
279public static IntPtr OffsetOf(Type t, String fieldName)
1234unsafe public static IntPtr StringToHGlobalAnsi(String s)
1265unsafe public static IntPtr StringToHGlobalUni(String s)
1290String.wstrcpy((char*)hglobal, firstChar, s.Length + 1);
1299public static IntPtr StringToHGlobalAuto(String s)
1315public static String GetTypeLibName(UCOMITypeLib pTLB)
1325public static String GetTypeLibName(ITypeLib typelib)
1331String strTypeLibName = null;
1332String strDocString = null;
1334String strHelpFile = null;
1346internal static String GetTypeLibNameInternal(ITypeLib typelib)
1502public static String GetTypeInfoName(UCOMITypeInfo pTI)
1511public static String GetTypeInfoName(ITypeInfo typeInfo)
1517String strTypeLibName = null;
1518String strDocString = null;
1520String strHelpFile = null;
1532internal static String GetTypeInfoNameInternal(ITypeInfo typeInfo, out bool hasManagedName)
1570internal static String GetManagedTypeInfoNameInternal(ITypeLib typeLib, ITypeInfo typeInfo)
1636String AsmNameString = AsmName.FullName;
1643if (String.Compare(aAssemblies[i].FullName,
1865unsafe public static IntPtr StringToCoTaskMemUni(String s)
1889String.wstrcpy((char *)hglobal, firstChar, s.Length + 1);
1897public static IntPtr StringToCoTaskMemAuto(String s)
1904unsafe public static IntPtr StringToCoTaskMemAnsi(String s)
2197public static IntPtr StringToBSTR(String s)
2214public static String PtrToStringBSTR(IntPtr ptr)
2342public static String GenerateProgIdForType(Type type)
2365Contract.Assert(progIdConstructorArg.ArgumentType == typeof(String), "progIdConstructorArg.ArgumentType == typeof(String)");
2367String strProgId = (String)progIdConstructorArg.Value;
2370strProgId = String.Empty;
2386public static Object BindToMoniker(String monikerName)
2404public static Object GetActiveObject(String progID)
2429private static extern void CLSIDFromProgIDEx([MarshalAs(UnmanagedType.LPWStr)] String progId, out Guid clsid);
2435private static extern void CLSIDFromProgID([MarshalAs(UnmanagedType.LPWStr)] String progId, out Guid clsid);
2447private static extern void MkParseDisplayName(IBindCtx pbc, [MarshalAs(UnmanagedType.LPWStr)] String szUserName, out UInt32 pchEaten, out IMoniker ppmk);
2753public void ReportEvent(ImporterEventKind EventKind, int EventCode, String EventMsg)
system\runtime\interopservices\registrationservices.cs (51)
79private const String strManagedCategoryGuid = "{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}";
80private const String strDocStringPrefix = "";
81private const String strManagedTypeThreadingModel = "Both";
82private const String strComponentCategorySubKey = "Component Categories";
83private const String strManagedCategoryDescription = ".NET Category";
84private const String strImplementedCategoriesSubKey = "Implemented Categories";
85private const String strMsCorEEFileName = "mscoree.dll";
86private const String strRecordRootName = "Record";
87private const String strClsIdRootName = "CLSID";
88private const String strTlbRootName = "TypeLib";
114String strAsmName = assembly.FullName;
119String strAsmCodeBase = null;
131String strAsmVersion = rtAssembly.GetVersion().ToString();
134String strRuntimeVersion = assembly.ImageRuntimeVersion;
183String strAsmVersion = rtAssembly.GetVersion().ToString();
254public virtual String GetProgIdForType(Type type)
375private void RegisterValueType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion)
378String strRecordId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
409private void RegisterManagedType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion)
415String strDocString = strDocStringPrefix + type.FullName;
416String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
417String strProgId = GetProgIdForType(type);
424if (strProgId != String.Empty)
468if (strProgId != String.Empty)
497private void RegisterComImportedType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion)
500String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
541private bool UnregisterValueType(Type type, String strAsmVersion)
546String strRecordId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
600private bool UnregisterManagedType(Type type,String strAsmVersion)
608String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
609String strProgId = GetProgIdForType(type);
686if (strProgId != String.Empty)
750if (strProgId != String.Empty)
796private bool UnregisterComImportedType(Type type, String strAsmVersion)
800String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
868private void RegisterPrimaryInteropAssembly(RuntimeAssembly assembly, String strAsmCodeBase, PrimaryInteropAssemblyAttribute attr)
874String strTlbId = "{" + Marshal.GetTypeLibGuidForAssembly(assembly).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
875String strVersion = attr.MajorVersion.ToString("x", CultureInfo.InvariantCulture) + "." + attr.MinorVersion.ToString("x", CultureInfo.InvariantCulture);
900String strTlbId = "{" + Marshal.GetTypeLibGuidForAssembly(assembly).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
901String strVersion = attr.MajorVersion.ToString("x", CultureInfo.InvariantCulture) + "." + attr.MinorVersion.ToString("x", CultureInfo.InvariantCulture);
1034(aParams[0].ParameterType != typeof(String) && aParams[0].ParameterType != typeof(Type)))
1053if(aParams[0].ParameterType == typeof(String))
system\runtime\interopservices\typelibconverter.cs (37)
46private const String s_strTypeLibAssemblyTitlePrefix = "TypeLib ";
47private const String s_strTypeLibAssemblyDescPrefix = "Assembly generated from typelib ";
60String asmFileName,
87String asmFileName,
92String asmNamespace,
102if (String.Empty.Equals(asmFileName))
125String strNonQualifiedAsmFileName = Path.GetFileName(asmFileName);
169public Object ConvertAssemblyToTypeLib(Assembly assembly, String strTypeLibName, TypeLibExporterFlags flags, ITypeLibExporterNotifySink notifySink)
183public bool GetPrimaryInteropAssembly(Guid g, Int32 major, Int32 minor, Int32 lcid, out String asmName, out String asmCodeBase)
185String strTlbId = "{" + g.ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
186String strVersion = major.ToString("x", CultureInfo.InvariantCulture) + "." + minor.ToString("x", CultureInfo.InvariantCulture);
208asmName = (String)VersionKey.GetValue("PrimaryInteropAssemblyName");
209asmCodeBase = (String)VersionKey.GetValue("PrimaryInteropAssemblyCodeBase");
230private static AssemblyBuilder CreateAssemblyForTypeLib(Object typeLib, String asmFileName, AssemblyName asmName, bool bPrimaryInteropAssembly, bool bReflectionOnly, bool bNoDefineVersionResource)
236String dir = null;
240if (String.IsNullOrEmpty(dir))
294internal static AssemblyName GetAssemblyNameFromTypelib(Object typeLib, String asmFileName, byte[] publicKey, StrongNameKeyPair keyPair, Version asmVersion, AssemblyNameFlags asmNameFlags)
297String strTypeLibName = null;
298String strDocString = null;
300String strHelpFile = null;
313String strFileNameNoPath = Path.GetFileName(asmFileName);
314String strExtension = Path.GetExtension(asmFileName);
370Type []aConsParams = new Type[1] {typeof(String)};
385Type []aConsParams = new Type[1] {typeof(String)};
389String strTypeLibName = Marshal.GetTypeLibName((ITypeLib)typeLib);
422String strTypeLibName = null;
423String strDocString = null;
425String strHelpFile = null;
430String strProductName = String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("TypeLibConverter_ImportedTypeLibProductName"), strTypeLibName);
483private static extern void nConvertTypeLibToMetadata(Object typeLib, RuntimeAssembly asmBldr, RuntimeModule modBldr, String nameSpace, TypeLibImporterFlags flags, ITypeLibImporterNotifySink notifySink, out ArrayList eventItfInfoList);
489private static extern Object nConvertAssemblyToTypeLib(RuntimeAssembly assembly, String strTypeLibName, TypeLibExporterFlags flags, ITypeLibExporterNotifySink notifySink);
494internal extern static void LoadInMemoryTypeByName(RuntimeModule module, String className);
508public void ReportEvent(ImporterEventKind eventKind, int eventCode, String eventMsg)
583if (String.Compare(asm.FullName, args.Name, StringComparison.OrdinalIgnoreCase) == 0)
594if (String.Compare(asm.FullName, args.Name, StringComparison.OrdinalIgnoreCase) == 0)
system\runtime\interopservices\ucomitypeinfo.cs (12)
188public String lpstrSchema;
221[MarshalAs(UnmanagedType.BStr)] public String bstrSource;
222[MarshalAs(UnmanagedType.BStr)] public String bstrDescription;
223[MarshalAs(UnmanagedType.BStr)] public String bstrHelpFile;
316void GetNames(int memid, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2), Out] String[] rgBstrNames, int cMaxNames, out int pcNames);
319void GetIDsOfNames([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1), In] String[] rgszNames, int cNames, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), Out] int[] pMemId);
321void GetDocumentation(int index, out String strName, out String strDocString, out int dwHelpContext, out String strHelpFile);
322void GetDllEntry(int memid, INVOKEKIND invKind, out String pBstrDllName, out String pBstrName, out Int16 pwOrdinal);
326void GetMops(int memid, out String pBstrMops);
system\runtime\interopservices\ucomitypelib.cs (5)
66void GetDocumentation(int index, out String strName, out String strDocString, out int dwHelpContext, out String strHelpFile);
68bool IsName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal);
69void FindName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal, [MarshalAs(UnmanagedType.LPArray), Out] UCOMITypeInfo[] ppTInfo, [MarshalAs(UnmanagedType.LPArray), Out] int[] rgMemId, ref Int16 pcFound);
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (1)
116String.Format(
system\runtime\remoting\configuration.cs (93)
196static volatile String _applicationName;
209private const String _machineConfigFilename = "machine.config";
212internal static String ApplicationName
230String.Format(
274String url, Object data, out String objectURI)
318String machineDirectory = System.Security.Util.Config.MachineDirectory;
319String longFileName = machineDirectory
338internal static void DoConfiguration(String filename, bool ensureSecurity)
354private static RemotingXmlConfigFileData LoadConfigurationFromXmlFile(String filename)
372String.Format(
386String appName = configData.ApplicationName;
424String.Format(
496String.Format(
515String ctor = null;
527String.Format(
601String.Format(
613String.Format(
627String.Format(
650String.Format(
667String assemblyName = cache.SimpleAssemblyName;
673String fullAssemblyName = cache.AssemblyName;
686internal static ActivatedClientTypeEntry IsRemotelyActivatedClientType(String typeName, String assemblyName)
700String assemblyName = cache.SimpleAssemblyName;
711internal static WellKnownClientTypeEntry IsWellKnownClientType(String typeName,
712String assemblyName)
720private static void ParseGenericType(String typeAssem, int indexStart, out String typeName, out String assemName)
756internal static void ParseType(String typeAssem, out String typeName, out String assemName)
758String value = typeAssem;
793String assemblyName = cache.SimpleAssemblyName;
802internal static bool IsActivationAllowed(String TypeName)
804String svrTypeName = RemotingServices.InternalGetTypeNameFromQualifiedTypeName(TypeName);
809String typeName;
810String asmName;
839String serverType = entry.TypeName;
840String asmName = entry.AssemblyName;
841String URI = entry.ObjectUri;
867internal static Type GetServerTypeForUri(String URI)
900internal static ServerIdentity CreateWellKnownObject(String uri)
938private String EncodeTypeAndAssemblyNames(String typeName, String assemblyName)
1013String appUri = remApp.AppUri;
1113internal bool ActivationAllowed(String typeName, String assemblyName)
1119internal ActivatedClientTypeEntry QueryRemoteActivate(String typeName, String assemblyName)
1121String index = EncodeTypeAndAssemblyNames(typeName, assemblyName);
1134String.Format(
1144internal WellKnownClientTypeEntry QueryConnect(String typeName, String assemblyName)
1146String index = EncodeTypeAndAssemblyNames(typeName, assemblyName);
1221String appUrl = null;
1285internal void AddActivatedType(String typeName, String assemblyName,
1297String.Format(
1308String key = EncodeTypeAndAssemblyNames(typeName, assemblyName);
1315private bool CheckForServiceEntryWithType(String typeName, String asmName)
1322private bool CheckForWellKnownServiceEntryWithType(String typeName, String asmName)
1338if (String.Compare(svc.AssemblyName, 0, asmName, 0, asmName.Length, StringComparison.OrdinalIgnoreCase) == 0)
1361private bool CheckForRedirectedClientType(String typeName, String asmName)
1379String.Format(
1388String.Format(
1394String appUrl = entry.ApplicationUrl;
1407String index = EncodeTypeAndAssemblyNames(entry.TypeName, entry.AssemblyName);
1417String.Format(
1426String.Format(
1433String appUrl = entry.ApplicationUrl;
1449String index = EncodeTypeAndAssemblyNames(entry.TypeName, entry.AssemblyName);
1469String.Format(
1475String key = entry.ObjectUri.ToLower(CultureInfo.InvariantCulture);
1496internal Type GetServerTypeForUri(String URI)
1501String uriLower = URI.ToLower(CultureInfo.InvariantCulture);
1515internal ServerIdentity StartupWellKnownObject(String URI)
1519String uriLower = URI.ToLower(CultureInfo.InvariantCulture);
1539String asmName, String svrTypeName, String URI,
1547String asmName, String svrTypeName, String URI,
1628String tempUri = RemotingServices.GetObjectUri(obj);
1632String.Format(
1692internal static Type LoadType(String typeName, String assemblyName)
system\runtime\remoting\ichannel.cs (33)
33String ChannelName
39String Parse(String url, out String objectURI);
46IMessageSink CreateMessageSink(String url, Object remoteChannelData, out String objectURI);
58String[] GetUrlsForUri(String objectURI);
69String ChannelScheme
88void AddHookChannelUri(String channelUri);
96IClientChannelSink CreateSink(IChannelSender channel, String url, Object remoteChannelData);
283String[] ChannelUris
306String[] _channelURIs; // list of channel uri's that map to this channel
311private ChannelDataStore(String[] channelUrls, DictionaryEntry[] extraData)
317public ChannelDataStore(String[] channelURIs)
330public String[] ChannelUris
426String strKey = (String)key;
431if (String.Compare((String)entry.Key, strKey, StringComparison.OrdinalIgnoreCase) == 0)
445String strKey = (String)key;
451String headerKey = (String)((DictionaryEntry)_headerList[co]).Key;
452if (String.Compare(headerKey, strKey, StringComparison.OrdinalIgnoreCase) == 0)
483private String _name;
487public SinkProviderData(String name)
492public String Name { get { return _name; } }
654String keyStr = key as String;
660String someKeyStr = someKey as String;
664if (String.Compare(keyStr, someKeyStr, StringComparison.OrdinalIgnoreCase) == 0)
system\runtime\remoting\identity.cs (29)
27internal static String ProcessIDGuid
38private static String s_originalAppDomainGuid = Guid.NewGuid().ToString().Replace('-', '_');
39private static String s_configuredAppDomainGuid = null;
41internal static String AppDomainUniqueId
53private static String s_originalAppDomainGuidString = "/" + s_originalAppDomainGuid.ToLower(CultureInfo.InvariantCulture) + "/";
54private static String s_configuredAppDomainGuidString = null;
56private static String s_IDGuidString = "/" + s_originalAppDomainGuid.ToLower(CultureInfo.InvariantCulture) + "/";
61internal static String IDGuidString
67internal static String RemoveAppNameOrAppGuidIfNecessary(String uri)
79String guidStr;
106String appName = RemotingConfiguration.ApplicationName;
112if (String.Compare(uri, 1, appName, 0, appName.Length, true, CultureInfo.InvariantCulture) == 0)
131private static bool StringStartsWith(String s1, String prefix)
139return (String.CompareOrdinal(s1, 0, prefix, 0, prefix.Length) == 0);
161protected String _ObjURI;
162protected String _URL;
181internal static String ProcessGuid {get {return ProcessIDGuid;}}
207internal Identity(String objURI, String URL)
329internal String URI
344internal String ObjURI
455internal void SetOrCreateURI(String uri)
460internal void SetOrCreateURI(String uri, bool bIdCtor)
477String random = System.Convert.ToBase64String(GetRandomBytes());
492internal static String GetNewLogicalCallID()
531internal bool RemoveProxySideDynamicProperty(String name)
538String.Format(
system\runtime\remoting\message.cs (169)
69private String _MethodName; // Method name
73private String _URI; // target object URI
74private String _typeName;
93internal static String CallContextKey = "__CallContext";
94internal static String UriKey = "__Uri";
213void IInternalMessage.SetURI(String URI)
252public String Uri
297public String GetArgName(int index)
347public String GetInArgName(int index)
372public String MethodName
383public String TypeName
521String.Format(
555String.Format(
571String.Format(
622String valueName = null;
633String.Format(
662String strValue = value as String;
720soapQName.Namespace = (String)keyToNamespaceTable["xmlns"];
722soapQName.Namespace = (String)keyToNamespaceTable["xmlns"+":"+soapQName.Key];
760String.Format(
794String valueName = null;
805String.Format(
850public static void DebugOut(String s)
865internal extern static void OutToUnmanagedDebugger(String s);
978private String _activationTypeName;
1053public String ActivationTypeName
1075public String Uri
1108public String MethodName
1126public String TypeName
1203public String GetInArgName(int index)
1254public String GetArgName(int index)
1396public static String[] CCMkeys = {
1481((ConstructorCallMessage)_ccmsg).Uri = (String)value;
1505public static String[] CRMkeysFault = {
1511public static String[] CRMkeysNoFault = {
1591rm.Uri = (String)value;
1598mr.Uri = (String)value;
1644public static String[] MCMkeys = {
1720msg.Uri = (String)value;
1724mc.Uri = (String)value;
1762public static String[] MCMkeysFault = {"__CallContext"};
1763public static String[] MCMkeysNoFault = {
1865rm.Uri = (String)value;
1871mr.Uri = (String)value;
1918internal String[] _keys;
1921internal MessageDictionary(String[] keys, IDictionary idict)
1972if (!(key is System.String))
1976String skey = (String) key;
2004System.String skey = key as System.String;
2353public String Uri
2359public String MethodName
2365public String TypeName
2398public String GetArgName(int index) {return _m.GetArgName(index);}
2436public String GetOutArgName(int index)
2504void IInternalMessage.SetURI(String val)
2535internal String _URI;
2539internal String _methodName;
2540internal String _typeName;
2587public String Uri
2593public String MethodName
2598public String TypeName
2670public String GetArgName(int index)
2728public String GetOutArgName(int index)
2822private String uri;
2823private String methodName;
2825private String typeName;
2922uri = handlerObject as String;
3004private static Type ResolveTypeRelativeTo(String typeName, int offset, int count, Type serverType)
3014String ifaceTypeName = iface.FullName;
3017if (String.CompareOrdinal(typeName, offset, ifaceTypeName, 0, count) == 0)
3029private static Type ResolveTypeRelativeToBaseTypes(String typeName, int offset, int count, Type serverType)
3039String serverTypeName = serverType.FullName;
3042if (String.CompareOrdinal(typeName, offset, serverTypeName, 0, count) == 0)
3068if (String.CompareOrdinal(typeName, 0, "clr:", 0, 4) == 0)
3118String.Format(
3274String.Format(
3329void ResolveOverloadedMethod(RuntimeType t, String methodName, ArrayList argNames, ArrayList argValues)
3419argValues.Add(info.GetValue((String)argNames[i], typeof(Object)));
3427String.Format(
3438String.Format(
3468String memberName;
3472memberName = (String)paramNames[i];
3511String memberName = (String)paramNames[i];
3568public String GetArgName(int index)
3608public String GetInArgName(int index)
3625public String MethodName
3631public String TypeName
3664public String Uri
3744void IInternalMessage.SetURI(String val)
3796String name = LogicalCallContext.GetPropertyKeyForHeader(header);
3812internal virtual bool FillSpecialHeader(String key, Object value)
3820uri = (String) value;
3824methodName = (String) value;
3832typeName = (String) value;
3841if (value is String)
3844callContext.RemotingData.LogicalCallID = (String) value;
3856internal void FillHeader(String key, Object value)
3879methodName = (String)h[0].Value;
3923internal String _activationTypeName;
3965internal override bool FillSpecialHeader(String key, Object value)
3990_activationTypeName = (String) value;
4030public String ActivationTypeName
4100private String methodName;
4102private String uri;
4103private String typeName;
4141String.Format(
4270String[] paramNames = new String[outParamsCount];
4410else if ((soapFault.Detail != null) && (soapFault.Detail.GetType() == typeof(String)) && (!(((String)soapFault.Detail).Length == 0)))
4412fault = new ServerException((String)soapFault.Detail);
4430Object returnValue = info.GetValue((String)paramNames[0], typeof(Object));
4431if (returnValue is String)
4449String memberName = (String)paramNames[i];
4499String memberName = (String)paramNames[j];
4533public String Uri
4540public String MethodName
4546public String TypeName
4593public String GetArgName(int index)
4635public String GetOutArgName(int index)
4726String name = LogicalCallContext.GetPropertyKeyForHeader(header);
4742internal void FillHeader(String name, Object value)
4750methodName = (String) value;
4754uri = (String) value;
4762typeName = (String) value;
4771if (value is String)
4774callContext.RemotingData.LogicalCallID = (String) value;
4817void IInternalMessage.SetURI(String val)
4849internal String[] fieldNames = null;
4867public String[] FieldNames
5008String unUsed;
5125void IInternalMessage.SetURI(String uri)
5294internal String GetArgName(int argNum)
5347internal String[] ArgNames
5351String[] ret = null;
5355ret = new String[_map.Length];
5539public String Uri
5545public String MethodName
5551public String TypeName
5576public String GetArgName(int index) { return m_ArgName; }
5599public String GetInArgName(int index) { return null; }
5613String m_URI = "Exception";
5614String m_MethodName = "Unknown";
5615String m_TypeName = "Unknown";
5618String m_ArgName = "Unknown";
5719System.String strKey = key as System.String;
5736System.String strKey = key as System.String;
5772public virtual String Uri
5786public virtual String MethodName
5792public virtual String TypeName
5830public virtual String GetArgName(int index) { return _msg.GetArgName(index); }
5877public virtual String GetInArgName(int index)
5941System.String strKey = key as System.String;
5959System.String strKey = key as System.String;
6001public String Uri
6016public virtual String MethodName
6022public virtual String TypeName
6061public virtual String GetArgName(int index) { return _msg.GetArgName(index); }
6108public virtual String GetOutArgName(int index)
system\runtime\remoting\remotingconfigparser.cs (180)
40internal String TypeName;
41internal String AssemblyName;
47internal ChannelEntry(String typeName, String assemblyName, Hashtable properties)
58internal String TypeName;
59internal String AssemblyName;
60internal String Url;
62internal ClientWellKnownEntry(String typeName, String assemName, String url)
73internal String TypeName;
74internal String AssemblyName;
77internal ContextAttributeEntry(String typeName, String assemName, Hashtable properties)
88internal String XmlElementName;
89internal String XmlElementNamespace;
90internal String UrtTypeName;
91internal String UrtAssemblyName;
93internal InteropXmlElementEntry(String xmlElementName, String xmlElementNamespace,
94String urtTypeName, String urtAssemblyName)
113internal String XmlTypeName;
114internal String XmlTypeNamespace;
115internal String UrtTypeName;
116internal String UrtAssemblyName;
118internal InteropXmlTypeEntry(String xmlTypeName, String xmlTypeNamespace,
119String urtTypeName, String urtAssemblyName)
203internal String TypeName;
204internal String AssemblyName;
206public PreLoadEntry(String typeName, String assemblyName)
216internal String AppUri;
221internal RemoteAppEntry(String appUri)
226internal void AddWellKnownEntry(String typeName, String assemName, String url)
232internal void AddActivatedEntry(String typeName, String assemName,
244internal String ObjectURI;
248String typeName, String assemName, ArrayList contextAttributes,
249String objURI, WellKnownObjectMode objMode) :
260internal String TypeName;
261internal String AssemblyName;
266internal SinkProviderEntry(String typeName, String assemName, Hashtable properties,
279internal String TypeName;
280internal String AssemblyName;
283internal TypeEntry(String typeName, String assemName,
302internal String ApplicationName = null; // application name
325internal void AddInteropXmlElementEntry(String xmlElementName, String xmlElementNamespace,
326String urtTypeName, String urtAssemblyName)
334internal void AddInteropXmlTypeEntry(String xmlTypeName, String xmlTypeNamespace,
335String urtTypeName, String urtAssemblyName)
343internal void AddPreLoadEntry(String typeName, String assemblyName)
350internal RemoteAppEntry AddRemoteAppEntry(String appUri)
357internal void AddServerActivatedEntry(String typeName, String assemName,
365internal ServerWellKnownEntry AddServerWellKnownEntry(String typeName, String assemName,
366ArrayList contextAttributes, String objURI, WellKnownObjectMode objMode)
377private void TryToLoadTypeIfApplicable(String typeName, String assemblyName)
576public static RemotingXmlConfigFileData ParseConfigFile(String filename)
595String key = entry.Key.ToString();
690private static void ReportError(String errorStr, RemotingXmlConfigFileData configData)
703String.Format(
709private static void ReportUnknownValueError(ConfigNode node, String value,
713String.Format(
719private static void ReportMissingAttributeError(ConfigNode node, String attributeName,
725private static void ReportMissingAttributeError(String nodeDescription, String attributeName,
729String.Format(
735private static void ReportMissingTypeAttributeError(ConfigNode node, String attributeName,
739String.Format(
745private static void ReportMissingXmlTypeAttributeError(ConfigNode node, String attributeName,
749String.Format(
755private static void ReportInvalidTimeFormatError(String time,
759String.Format(
771String.Format(
782String.Format(
789ConfigNode node, String referenceName,
793String.Format(
800String assemName, String entryDescription,
805String.Format(
816String key = entry.Key.ToString();
821Convert.ToBoolean((String)entry.Value, CultureInfo.InvariantCulture);
835String key = entry.Key.ToString();
837configData.ApplicationName = (String)entry.Value;
858String key = entry.Key.ToString();
863if (String.Compare(value, "on", StringComparison.OrdinalIgnoreCase) == 0)
865else if (String.Compare(value, "off", StringComparison.OrdinalIgnoreCase) == 0)
867else if (String.Compare(value, "remoteonly", StringComparison.OrdinalIgnoreCase) == 0)
887String key = entry.Key.ToString();
892configData.Lifetime.LeaseTime = ParseTime((String)entry.Value, configData);
896configData.Lifetime.SponsorshipTimeout = ParseTime((String)entry.Value, configData);
900configData.Lifetime.RenewOnCallTime = ParseTime((String)entry.Value, configData);
904configData.Lifetime.LeaseManagerPollTime = ParseTime((String)entry.Value, configData);
934String remoteAppUri = null;
939String key = entry.Key.ToString();
942case "url": remoteAppUri = (String)entry.Value; break;
978String key = entry.Key.ToString();
1023String typeName = null;
1024String assemName = null;
1027String objectURI = null;
1035String key = entry.Key.ToString();
1042String value = (String)entry.Value;
1044if (String.CompareOrdinal(value, "Singleton") == 0)
1047if (String.CompareOrdinal(value, "SingleCall") == 0)
1054case "objectUri": objectURI = (String)entry.Value; break;
1058RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1115String typeName = null;
1116String assemName = null;
1121String key = entry.Key.ToString();
1126RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1171String typeName = null;
1172String assemName = null;
1173String url = null;
1177String key = entry.Key.ToString();
1184RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1188case "url": url = (String)entry.Value; break;
1212String typeName = null;
1213String assemName = null;
1218String key = entry.Key.ToString();
1223RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1255String xmlElementName = null;
1256String xmlElementNamespace = null;
1257String urtTypeName = null;
1258String urtAssemName = null;
1262String key = entry.Key.ToString();
1267RemotingConfigHandler.ParseType((String)entry.Value, out xmlElementName, out xmlElementNamespace);
1273RemotingConfigHandler.ParseType((String)entry.Value, out urtTypeName, out urtAssemName);
1295String xmlTypeName = null;
1296String xmlTypeNamespace = null;
1297String urtTypeName = null;
1298String urtAssemName = null;
1302String key = entry.Key.ToString();
1307RemotingConfigHandler.ParseType((String)entry.Value, out xmlTypeName, out xmlTypeNamespace);
1313RemotingConfigHandler.ParseType((String)entry.Value, out urtTypeName, out urtAssemName);
1335String typeName = null;
1336String assemblyName = null;
1340String key = entry.Key.ToString();
1345RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemblyName);
1351assemblyName = (String)entry.Value;
1375String typeName = null;
1376String assemName = null;
1382String lowercaseKey = ((String)entry.Key).ToLower(CultureInfo.InvariantCulture);
1388RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1415String id = null;
1416String typeName = null;
1417String assemName = null;
1427String keyStr = (String)entry.Key;
1439id = ((String)entry.Value).ToLower(CultureInfo.InvariantCulture);
1477RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1483delayLoad = Convert.ToBoolean((String)entry.Value, CultureInfo.InvariantCulture);
1580String nodeName = node.Name;
1593String id = null;
1594String typeName = null;
1595String assemName = null;
1603String keyStr = (String)entry.Key;
1614id = (String)entry.Value;
1661RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemName);
1785private static bool CheckAssemblyNameForVersionInfo(String assemName)
1796private static TimeSpan ParseTime(String time, RemotingXmlConfigFileData configData)
1806String specifiedTime = time;
1808String metric = "s"; // default is seconds
system\runtime\remoting\remotingconfiguration.cs (48)
40public static void Configure(String filename)
48public static void Configure(String filename, bool ensureSecurity)
59public static String ApplicationName
79public static String ApplicationId
85public static String ProcessId
150Type type, String objectUri, WellKnownObjectMode mode)
169public static void RegisterActivatedClientType(Type type, String appUrl)
193public static void RegisterWellKnownClientType(Type type, String objectUrl)
263public static ActivatedClientTypeEntry IsRemotelyActivatedClientType(String typeName, String assemblyName)
289public static WellKnownClientTypeEntry IsWellKnownClientType(String typeName,
290String assemblyName)
320String _typeName;
321String _assemblyName;
329public String TypeName { get { return _typeName; } set {_typeName = value;} }
331public String AssemblyName { get { return _assemblyName; } set {_assemblyName = value;} }
341String _appUrl; // url of application to activate the type in
347public ActivatedClientTypeEntry(String typeName, String assemblyName, String appUrl)
362public ActivatedClientTypeEntry(Type type, String appUrl)
379public String ApplicationUrl { get { return _appUrl; } }
397public override String ToString()
412public ActivatedServiceTypeEntry(String typeName, String assemblyName)
453public override String ToString()
464String _objectUrl;
467String _appUrl = null; // url of application to associate this object with
470public WellKnownClientTypeEntry(String typeName, String assemblyName, String objectUrl)
485public WellKnownClientTypeEntry(Type type, String objectUrl)
502public String ObjectUrl { get { return _objectUrl; } }
513public String ApplicationUrl
519public override String ToString()
521String str = "type='" + TypeName + ", " + AssemblyName + "'; url=" + _objectUrl;
533String _objectUri;
539public WellKnownServiceTypeEntry(String typeName, String assemblyName, String objectUri,
556public WellKnownServiceTypeEntry(Type type, String objectUri, WellKnownObjectMode mode)
573public String ObjectUri { get { return _objectUri; } }
593public override String ToString()
603String _remoteAppName;
604String _remoteAppURI;
605internal RemoteAppEntry(String appName, String appURI)
611internal String GetAppURI() { return _remoteAppURI;}
system\runtime\remoting\remotingservices.cs (75)
50private const String FieldGetterName = "FieldGetter";
51private const String FieldSetterName = "FieldSetter";
52private const String IsInstanceOfTypeName = "IsInstanceOfType";
53private const String CanCastToXmlTypeName = "CanCastToXmlType";
54private const String InvokeMemberName = "InvokeMember";
214String.Format(
253String.Format(
281String.Format(
350public static String GetSessionIdForMethodMessage(IMethodMessage msg)
369public static String GetObjectUri(MarshalByRefObject obj)
387public static void SetObjectUriForMarshal( MarshalByRefObject obj, String uri)
470public static ObjRef Marshal(MarshalByRefObject Obj, String URI)
477public static ObjRef Marshal(MarshalByRefObject Obj, String ObjURI, Type RequestedType)
484internal static ObjRef MarshalInternal(MarshalByRefObject Obj, String ObjURI, Type RequestedType)
490internal static ObjRef MarshalInternal(MarshalByRefObject Obj, String ObjURI, Type RequestedType, bool updateChannelData)
497internal static ObjRef MarshalInternal(MarshalByRefObject Obj, String ObjURI, Type RequestedType, bool updateChannelData, bool isInitializing)
668String ObjURI,
846public static Object Connect(Type classToProxy, String url)
853public static Object Connect(Type classToProxy, String url, Object data)
957internal static Object Unmarshal(Type classToProxy, String url)
964internal static Object Unmarshal(Type classToProxy, String url, Object data)
992String objectURI = null;
1002String.Format(
1139internal static String GetObjectUriFromFullUri(String fullUri)
1185String.Format(
1256String.Format(
1367String typeName = serverTypeInfo.TypeName;
1370String typeNamespace = null;
1371String assemNamespace = null;
1389String.Format(
1460String.Format(
1619String objectURI;
1645internal static String CreateEnvoyAndChannelSinks(String url,
1651String objectURI = null;
1661private static String CreateChannelSink(String url, Object data, out IMessageSink chnlSink)
1664String objectURI = null;
1712String.Format(
1889String.Format(
2053String beginName = "Begin" + method.Name;
2054String endName = "End" + method.Name;
2153public static Type GetServerTypeForUri(String URI)
2359String typeName = serverTypeInfo.TypeName;
2507internal static String DetermineDefaultQualifiedTypeName(Type type)
2514String xmlTypeName = null;
2515String xmlTypeNamespace = null;
2529internal static String GetDefaultQualifiedTypeName(RuntimeType type)
2538internal static String InternalGetClrTypeNameFromQualifiedTypeName(String qualifiedTypeName)
2543if (String.CompareOrdinal(qualifiedTypeName, 0, "clr:", 0, 4) == 0)
2546String actualTypeName = qualifiedTypeName.Substring(4);
2553private static int IsSoapType(String qualifiedTypeName)
2558if (String.CompareOrdinal(qualifiedTypeName, 0, "soap:", 0, 5) == 0)
2568internal static String InternalGetSoapTypeNameFromQualifiedTypeName(String xmlTypeName, String xmlTypeNamespace)
2572String typeNamespace;
2573String assemblyName;
2581String typeName;
2589String fullTypeName = typeName + ", " + assemblyName;
2601internal static String InternalGetTypeNameFromQualifiedTypeName(String qualifiedTypeName)
2607String decodedName = InternalGetClrTypeNameFromQualifiedTypeName(qualifiedTypeName);
2618String xmlTypeName = qualifiedTypeName.Substring(5, index - 5);
2620String xmlTypeNamespace =
2638internal static RuntimeType InternalGetTypeFromQualifiedTypeName(String qualifiedTypeName, bool partialFallback)
2644String decodedName = InternalGetClrTypeNameFromQualifiedTypeName(qualifiedTypeName);
2656String xmlTypeName = qualifiedTypeName.Substring(5, index - 5);
2658String xmlTypeNamespace =
2678internal static Type InternalGetTypeFromQualifiedTypeName(String qualifiedTypeName)
2684private unsafe static RuntimeType LoadClrTypeWithPartialBindFallback(String typeName, bool partialFallback)
2762public static void DebugOutChnl(String s)
2778public static void RemotingAssert(bool condition, String message)
system\runtime\remoting\soap.cs (93)
55private static String CreateKey(String elementName, String elementNamespace)
66public String Name;
67public String Namespace;
69public XmlEntry(String name, String xmlNamespace)
83public String Name;
85public FieldEntry(Type type, String name)
98public void AddXmlElement(Type fieldType, String fieldName,
99String xmlElement, String xmlNamespace)
106public void AddXmlAttribute(Type fieldType, String fieldName,
107String xmlAttribute, String xmlNamespace)
114public void GetFieldTypeAndNameFromXmlElement(String xmlElement, String xmlNamespace,
115out Type type, out String name)
131public void GetFieldTypeAndNameFromXmlAttribute(String xmlAttribute, String xmlNamespace,
132out Type type, out String name)
151public static void RegisterInteropXmlElement(String xmlElement, String xmlNamespace,
160public static void RegisterInteropXmlType(String xmlType, String xmlTypeNamespace,
208String xmlName = fieldAttr.XmlElementName;
209String xmlNamespace = fieldAttr.XmlNamespace;
244public static Type GetInteropTypeFromXmlElement(String xmlElement, String xmlNamespace)
251public static Type GetInteropTypeFromXmlType(String xmlType, String xmlTypeNamespace)
258String xmlElement, String xmlNamespace,
259out Type type, out String name)
283String xmlAttribute, String xmlNamespace,
284out Type type, out String name)
309out String xmlElement, out String xmlNamespace)
341out String xmlType, out String xmlTypeNamespace)
372public static String GetXmlNamespaceForMethodCall(MethodBase mb)
381public static String GetXmlNamespaceForMethodResponse(MethodBase mb)
399public static void RegisterSoapActionForMethodBase(MethodBase mb, String soapAction)
422public static String GetSoapActionFromMethodBase(MethodBase mb)
424String soapAction = (String)_methodBaseToSoapAction[mb];
438public static bool IsSoapActionValidForMethodBase(String soapAction, MethodBase mb)
450if (String.CompareOrdinal(attr.SoapAction, soapAction) == 0)
454String registeredSoapAction = (String)_methodBaseToSoapAction[mb];
457if (String.CompareOrdinal(registeredSoapAction, soapAction) == 0)
462String typeName, methodName;
464String[] parts = soapAction.Split(new char[1]{'#'});
487String actualTypeName = mb.DeclaringType.FullName;
499public static bool GetTypeAndMethodNameFromSoapAction(String soapAction,
500out String typeName,
501out String methodName)
540String[] parts = soapAction.Split(new char[1]{'#'});
575internal static String startNS = "http://schemas.microsoft.com/clr/";
576internal static String assemblyNS = "http://schemas.microsoft.com/clr/assem/";
577internal static String namespaceNS = "http://schemas.microsoft.com/clr/ns/";
578internal static String fullNS = "http://schemas.microsoft.com/clr/nsassem/";
580public static String XmlNsForClrType
585public static String XmlNsForClrTypeWithAssembly
590public static String XmlNsForClrTypeWithNs
595public static String XmlNsForClrTypeWithNsAndAssembly
600public static bool IsClrTypeNamespace(String namespaceString)
609public static String CodeXmlNamespaceForClrTypeNamespace(String typeNamespace, String assemblyName)
641public static bool DecodeXmlNamespaceForClrTypeNamespace(String inNamespace, out String typeNamespace, out String assemblyName)
665internal static void UriEncode(String value, StringBuilder sb)
684internal static String UriDecode(String value)
722private static bool IsNameNull(String name)
738internal static String GetXmlNamespaceForType(RuntimeType type, String dynamicUrl)
740String typeName = type.FullName;
743Assembly systemAssembly = typeof(String).Module.Assembly;
765internal static String GetXmlNamespaceForTypeNamespace(RuntimeType type, String dynamicUrl)
767String typeNamespace = type.Namespace;
770Assembly systemAssembly = typeof(String).Module.Assembly;
790internal static String GetTypeNameForSoapActionNamespace(String uri, out bool assemblyIncluded)
793String urtNSprefix = SoapServices.fullNS;
794String systemNSprefix = SoapServices.namespaceNS;
800String[] parts = uri.Split(sep);
811String assemName = ((RuntimeAssembly)typeof(String).Module.Assembly).GetSimpleName();
system\runtime\serialization\formatter.cs (19)
92protected abstract void WriteArray(Object obj, String name, Type memberType);
95protected abstract void WriteBoolean(bool val, String name);
98protected abstract void WriteByte(byte val, String name);
101protected abstract void WriteChar(char val, String name);
104protected abstract void WriteDateTime(DateTime val, String name);
107protected abstract void WriteDecimal(Decimal val, String name);
110protected abstract void WriteDouble(double val, String name);
113protected abstract void WriteInt16(short val, String name);
117protected abstract void WriteInt32(int val, String name);
120protected abstract void WriteInt64(long val, String name);
124protected abstract void WriteObjectRef(Object obj, String name, Type memberType);
128protected virtual void WriteMember(String memberName, Object data) {
182protected abstract void WriteSByte(sbyte val, String name);
185protected abstract void WriteSingle(float val, String name);
188protected abstract void WriteTimeSpan(TimeSpan val, String name);
193protected abstract void WriteUInt16(ushort val, String name);
197protected abstract void WriteUInt32(uint val, String name);
201protected abstract void WriteUInt64(ulong val, String name);
205protected abstract void WriteValueType(Object obj, String name, Type memberType);
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (59)
38internal static BinaryTypeEnum GetBinaryTypeInfo(Type type, WriteObjectInfo objectInfo, String typeName, ObjectWriter objectWriter, out Object typeInformation, out int assemId)
66String assembly = null;
217out String typeString,
306internal static void WriteStringWithCode(String value, __BinaryWriter sout)
322WriteStringWithCode((String)value, sout);
357public static void NVTraceI(String name, String value)
365public static void NVTraceI(String name, Object value)
387internal String assemblyString;
391internal BinaryAssemblyInfo(String assemblyString)
396internal BinaryAssemblyInfo(String assemblyString, Assembly assembly)
499internal String assemblyString;
506internal void Set(Int32 assemId, String assemblyString)
642String uri;
643String methodName;
644String typeName;
649String scallContext;
658internal Object[] WriteArray(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, Object callContext, Object[] properties)
716else if (callContext is String)
771IOUtil.WriteStringWithCode((String)callContext, sout);
789methodName = (String)IOUtil.ReadWithCode(input);
790typeName = (String)IOUtil.ReadWithCode(input);
795scallContext = (String)IOUtil.ReadWithCode(input);
879if (callContext is String)
880BinaryUtil.NVTraceI("callContext", (String)callContext);
905String scallContext;
994else if (callContext is String)
1052IOUtil.WriteStringWithCode((String)callContext, sout);
1081scallContext = (String)IOUtil.ReadWithCode(input);
1160if (callContext is String)
1161BinaryUtil.NVTraceI("callContext", (String)callContext);
1185internal String value;
1191internal void Set(Int32 objectId, String value)
1368internal String name;
1370internal String[] memberNames;
1382internal void Set(Int32 objectId, String name, Int32 numMembers, String[] memberNames, Int32 assemId)
1419memberNames = new String[numMembers];
1462internal String name;
1464internal String[] memberNames;
1499internal void Set(Int32 objectId, String name, Int32 numMembers, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, Int32 assemId)
1545memberNames = new String[numMembers];
1876String typeString = Converter.ToComType(typeInformation);
2071internal String objectName;
2077internal String[] memberNames;
2085internal ObjectMap(String objectName, Type objectType, String[] memberNames, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo)
2111internal ObjectMap(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, int[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
2132String typeString;
2167internal static ObjectMap Create(String name, Type objectType, String[] memberNames, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo)
2174internal static ObjectMap Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, int[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
2196internal String name;
2215internal String[] memberNames;
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (13)
133internal void WriteString(String value)
194internal Object[] WriteCallArray(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, Object callContext, Object[] properties)
222internal void WriteObject(NameInfo nameInfo, NameInfo typeNameInfo, int numMembers, String[] memberNames, Type[] memberTypes, WriteObjectInfo[] memberObjectInfos)
241String objectName = null;
324internal void WriteObjectString(int objectId, String value)
634internal void WriteMemberString(NameInfo memberNameInfo, NameInfo typeNameInfo, String value)
694internal void WriteAssembly(Type type, String assemblyString, int assemId, bool isNew)
702assemblyString=String.Empty;
778String[] memberNames;
781internal ObjectMapInfo(int objectId, int numMembers, String[] memberNames, Type[] memberTypes)
789internal bool isCompatible(int numMembers, String[] memberNames, Type[] memberTypes)
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (22)
284cache.memberNames = new String[count];
348cache.memberNames = new String[count];
376internal String GetTypeFullName()
382internal String GetAssemblyString()
421internal void GetMemberInfo(out String[] outMemberNames, out Type[] outMemberTypes, out Object[] outMemberData)
482internal String[] wireMemberNames;
544internal static ReadObjectInfo Create(Type objectType, String[] memberNames, Type[] memberTypes, ISurrogateSelector surrogateSelector, StreamingContext context, ObjectManager objectManager, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, bool bSimpleAssembly)
553internal void Init(Type objectType, String[] memberNames, Type[] memberTypes, ISurrogateSelector surrogateSelector, StreamingContext context, ObjectManager objectManager, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, bool bSimpleAssembly)
633cache.memberNames = new String[count];
650internal MemberInfo GetMemberInfo(String name)
667internal Type GetType(String name)
689internal void AddValue(String name, Object value, ref SerializationInfo si, ref Object[] memberData)
723internal void RecordFixup(long objectId, String name, long idRef)
776private int Position(String name)
810internal Type[] GetMemberTypes(String[] inMemberNames, Type objectType)
913internal String fullTypeName = null;
914internal String assemblyString = null;
917internal String[] memberNames = null;
938private String fullTypeName = null;
939private String assemblyString = null;
942internal String FullTypeName
950internal String AssemblyString
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (14)
336throw new SerializationException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Serialization_NonSerType"),
369internal ReadObjectInfo CreateReadObjectInfo(Type objectType, String[] memberNames, Type[] memberTypes)
723pr.PRobjectA = new String[pr.PRlengthA[0]];
1058String objName = null;
1272m_objectManager.RegisterString((String)obj, pr.PRobjectId, si, parentId, memberInfo);
1319private void IndexTraceMessage(String message, int[] index)
1334internal Type Bind(String assemblyString, String typeString)
1348public String assemblyName;
1353internal Type FastBindToType(String assemblyName, String typeName)
1454private String previousAssemblyString;
1455private String previousName;
1460internal Type GetType(BinaryAssemblyInfo assemblyInfo, String name)
system\runtime\serialization\formatters\soapfault.cs (28)
34String faultCode;
35String faultString;
36String faultActor;
43public SoapFault(String faultCode, String faultString, String faultActor, ServerFault serverFault)
57String name = siEnum.Name;
60if (String.Compare(name, "faultCode", true, CultureInfo.InvariantCulture) == 0)
62int index = ((String)value).IndexOf(':');
64faultCode = ((String)value).Substring(++index);
66faultCode = (String)value;
68else if (String.Compare(name, "faultString", true, CultureInfo.InvariantCulture) == 0)
69faultString = (String)value;
70else if (String.Compare(name, "faultActor", true, CultureInfo.InvariantCulture) == 0)
71faultActor = (String)value;
72else if (String.Compare(name, "detail", true, CultureInfo.InvariantCulture) == 0)
87public String FaultCode
93public String FaultString
100public String FaultActor
119String exceptionType;
120String message;
121String stackTrace;
131public ServerFault(String exceptionType, String message, String stackTrace)
139public String ExceptionType
145public String ExceptionMessage
152public String StackTrace
system\runtime\serialization\objectmanager.cs (6)
262throw new SerializationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Serialization_NotCyclicallyReferenceableSurrogate"), surrogate.GetType().FullName));
531si.UpdateValue((String)fixupInfo, holderValue, holderValue.GetType());
533si.UpdateValue((String)fixupInfo, holderValue, typeof(MarshalByRefObject));
728internal void RegisterString(String obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member)
1043public virtual void RecordDelayedFixup(long objectToBeFixed, String memberName, long objectRequired) {
1205internal ObjectHolder(String obj, long objID, SerializationInfo info,
system\runtime\serialization\serializationinfo.cs (49)
42internal String[] m_members;
48private String m_fullTypeName;
49private String m_assemName;
83m_members = new String[defaultSize];
96public String FullTypeName
115public String AssemblyName
273String[] newMembers = new String[newSize];
289public void AddValue(String name, Object value, Type type)
305public void AddValue(String name, Object value)
317public void AddValue(String name, bool value)
322public void AddValue(String name, char value)
329public void AddValue(String name, sbyte value)
334public void AddValue(String name, byte value)
339public void AddValue(String name, short value)
345public void AddValue(String name, ushort value)
350public void AddValue(String name, int value)
356public void AddValue(String name, uint value)
361public void AddValue(String name, long value)
367public void AddValue(String name, ulong value)
372public void AddValue(String name, float value)
377public void AddValue(String name, double value)
382public void AddValue(String name, decimal value)
387public void AddValue(String name, DateTime value)
392internal void AddValueInternal(String name, Object value, Type type)
430internal void UpdateValue(String name, Object value, Type type)
449private int FindElement(String name)
475private Object GetElement(String name, out Type foundType)
493private Object GetElementNoThrow(String name, out Type foundType)
516public Object GetValue(String name, Type type)
555internal Object GetValueNoThrow(String name, Type type)
585public bool GetBoolean(String name)
598public char GetChar(String name)
612public sbyte GetSByte(String name)
625public byte GetByte(String name)
638public short GetInt16(String name)
652public ushort GetUInt16(String name)
665public int GetInt32(String name)
679public uint GetUInt32(String name)
692public long GetInt64(String name)
706public ulong GetUInt64(String name)
719public float GetSingle(String name)
733public double GetDouble(String name)
746public decimal GetDecimal(String name)
759public DateTime GetDateTime(String name)
772public String GetString(String name)
778if (Object.ReferenceEquals(foundType, typeof(String)) || value == null)
780return (String)value;
system\runtime\versioning\binarycompatibility.cs (16)
154private const String c_versionKey = "Version";
155private const String c_profileKey = "Profile";
268private static bool ParseTargetFrameworkMonikerIntoEnum(String targetFrameworkMoniker, out TargetFrameworkId targetFramework, out int targetFrameworkVersion)
270Contract.Requires(!String.IsNullOrEmpty(targetFrameworkMoniker));
275String identifier = null;
276String profile = null;
315if (!String.IsNullOrEmpty(profile))
340Contract.Assert(false, String.Format(CultureInfo.InvariantCulture, "Unrecognized Silverlight profile \"{0}\". What is this, an XBox app?", profile));
347Contract.Assert(false, String.Format(CultureInfo.InvariantCulture, "Unrecognized Target Framework Moniker in our Binary Compatibility class. Framework name: \"{0}\"", targetFrameworkMoniker));
360private static void ParseFrameworkName(String frameworkName, out String identifier, out int version, out String profile)
372String[] components = frameworkName.Split(c_componentSeparator);
436if (!String.IsNullOrEmpty(value))
492String targetFrameworkName = AppDomain.CurrentDomain.GetTargetFrameworkName();
494var overrideValue = System.Runtime.Versioning.CompatibilitySwitch.GetValueInternal("TargetFrameworkMoniker");
system\sbyte.cs (21)
87public override String ToString() {
88Contract.Ensures(Contract.Result<String>() != null);
93public String ToString(IFormatProvider provider) {
94Contract.Ensures(Contract.Result<String>() != null);
98public String ToString(String format) {
99Contract.Ensures(Contract.Result<String>() != null);
103public String ToString(String format, IFormatProvider provider) {
104Contract.Ensures(Contract.Result<String>() != null);
109private String ToString(String format, NumberFormatInfo info) {
110Contract.Ensures(Contract.Result<String>() != null);
120public static sbyte Parse(String s) {
125public static sbyte Parse(String s, NumberStyles style) {
131public static sbyte Parse(String s, IFormatProvider provider) {
140public static sbyte Parse(String s, NumberStyles style, IFormatProvider provider) {
145private static sbyte Parse(String s, NumberStyles style, NumberFormatInfo info) {
167public static bool TryParse(String s, out SByte result) {
172public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out SByte result) {
177private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out SByte result) {
system\security\cryptography\cryptoconfig.cs (22)
503String.Compare(node.Name, "cryptoNameMapping", StringComparison.Ordinal) == 0)
508String.Compare(node.Name, "oidMap", StringComparison.Ordinal) == 0)
557if (String.IsNullOrEmpty(name)) {
590String retvalTypeString = machineNameHT.GetValueOrDefault(name);
607} else if (retvalObj is String) {
608retvalType = Type.GetType((String) retvalObj, false, false);
702if (String.IsNullOrEmpty(name)) {
758String[] oidString = str.Split(sepArray);
835Contract.Assert(String.Compare(nameMappingNode.Name, "cryptoNameMapping", StringComparison.Ordinal) == 0, "Invalid name mapping root");
843if (String.Compare(node.Name, "cryptoClasses", StringComparison.Ordinal) == 0)
847if (String.Compare(cryptoClass.Name, "cryptoClass", StringComparison.Ordinal) == 0)
857else if(String.Compare(node.Name, "nameEntry", StringComparison.Ordinal) == 0)
864if(String.Compare((string)attribute.Key, "name", StringComparison.Ordinal) == 0)
866else if(String.Compare((string)attribute.Key, "class", StringComparison.Ordinal) == 0)
885Contract.Assert(String.Compare(oidMappingNode.Name, "oidMap", StringComparison.Ordinal) == 0, "Invalid OID mapping root");
890if (String.Compare(node.Name, "oidEntry", StringComparison.Ordinal) == 0)
897if (String.Compare((string)attribute.Key, "OID", StringComparison.Ordinal) == 0)
899else if (String.Compare((string)attribute.Key, "name", StringComparison.Ordinal) == 0)
933if (String.Compare(node.Name, "mscorlib", StringComparison.Ordinal) == 0)
937if (String.Compare((string)attribute.Key, "version", StringComparison.Ordinal) == 0)
941if (String.Compare((string)attribute.Value, Version, StringComparison.Ordinal) == 0)
965if (String.Compare(node.Name, "cryptographySettings", StringComparison.Ordinal) == 0)
system\security\cryptography\passwordderivebytes.cs (4)
58public PasswordDeriveBytes (String strPassword, byte[] rgbSalt) : this (strPassword, rgbSalt, new CspParameters()) {}
74public PasswordDeriveBytes (string strPassword, byte[] rgbSalt, String strHashName, int iterations, CspParameters cspParams) :
81public PasswordDeriveBytes (byte[] password, byte[] salt, String hashName, int iterations, CspParameters cspParams) {
93public String HashName {
system\security\framesecuritydescriptor.cs (4)
332throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
347throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
360throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
372throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
system\security\permissions\fileiopermission.cs (51)
71public FileIOPermission(FileIOPermissionAccess access, String path)
75String[] pathList = new String[] { path };
80public FileIOPermission(FileIOPermissionAccess access, String[] pathList)
89public FileIOPermission(FileIOPermissionAccess access, AccessControlActions control, String path)
93String[] pathList = new String[] { path };
98public FileIOPermission(FileIOPermissionAccess access, AccessControlActions control, String[] pathList)
105internal FileIOPermission(FileIOPermissionAccess access, String[] pathList, bool checkForDuplicates, bool needFullPath)
114internal FileIOPermission(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, bool checkForDuplicates, bool needFullPath)
122public void SetPathList(FileIOPermissionAccess access, String path)
124String[] pathList;
126pathList = new String[] { };
128pathList = new String[] { path };
132public void SetPathList(FileIOPermissionAccess access, String[] pathList)
138String[] pathList, bool checkForDuplicates)
144internal void SetPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, bool checkForDuplicates)
180public void AddPathList(FileIOPermissionAccess access, String path)
182String[] pathList;
184pathList = new String[] { };
186pathList = new String[] { path };
191public void AddPathList(FileIOPermissionAccess access, String[] pathList)
197internal void AddPathList(FileIOPermissionAccess access, String[] pathListOrig, bool checkForDuplicates, bool needFullPath, bool copyPathList)
203internal void AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, bool checkForDuplicates, bool needFullPath, bool copyPathList)
222String[] pathList = pathListOrig;
226pathList = new String[pathListOrig.Length];
299public String[] GetPathList(FileIOPermissionAccess access)
551private static void CheckIllegalCharacters(String[] str, bool onlyCheckExtras)
839String et;
1130private const String m_strAllFiles = "*AllFiles*";
1131private const String m_strAllLocalFiles = "*AllLocalFiles*";
1150public FileIOAccess( String value )
1158else if (value.Length >= m_strAllFiles.Length && String.Compare( m_strAllFiles, value, StringComparison.Ordinal) == 0)
1164else if (value.Length >= m_strAllLocalFiles.Length && String.Compare( m_strAllLocalFiles, 0, value, 0, m_strAllLocalFiles.Length, StringComparison.Ordinal) == 0)
1305String[] expressions = operand.m_set.UnsafeToStringArray();
1311String root = GetRoot( expressions[i] );
1314intersectionSet.AddExpressions( new String[] { expressions[i] }, true, false );
1322String[] expressions = this.m_set.UnsafeToStringArray();
1328String root = GetRoot( expressions[i] );
1331intersectionSet.AddExpressions( new String[] { expressions[i] }, true, false );
1337String[] regularIntersection = this.m_set.Intersect( operand.m_set ).UnsafeToStringArray();
1366String[] expressions = m_set.UnsafeToStringArray();
1370String root = GetRoot( expressions[i] );
1386private static String GetRoot( String path )
1388String str = path.Substring( 0, 3 );
1400public override String ToString()
1412String retstr = m_strAllLocalFiles;
1414String tempStr = m_set.UnsafeToString();
1429public String[] ToStringArray()
1440internal static extern bool IsLocalDrive(String path);
system\security\permissionset.cs (21)
52private static void DEBUG_WRITE(String str) {
61private static void DEBUG_COND_WRITE(bool exp, String str)
99private String m_serializedPermissionSet;
1628public override String ToString()
1735internal static bool IsPermissionTag( String tag, bool allowInternalOnly )
1761throw new ArgumentException(String.Format( null, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PermissionSet", this.GetType().FullName) );
1778String className = elem.Attribute( "class" );
1863throw new ArgumentException(String.Format( null, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PermissionSet", this.GetType().FullName) );
1868String strUnrestricted = doc.GetAttributeForElement( position, "Unrestricted" );
1883String className = doc.GetAttributeForElement( childIndex, "class" );
2157internal SecurityElement ToXml(String permName)
2250public static byte[] ConvertPermissionSet(String inFormat, byte[] inData, String outFormat)
2332private const String s_str_PermissionSet = "PermissionSet";
2333private const String s_str_Permission = "Permission";
2334private const String s_str_IPermission = "IPermission";
2335private const String s_str_Unrestricted = "Unrestricted";
2336private const String s_str_PermissionUnion = "PermissionUnion";
2337private const String s_str_PermissionIntersection = "PermissionIntersection";
2338private const String s_str_PermissionUnrestrictedUnion = "PermissionUnrestrictedUnion";
2339private const String s_str_PermissionUnrestrictedIntersection = "PermissionUnrestrictedIntersection";
system\security\policy\applicationsecurityinfo.cs (3)
111if (String.Compare(sameSite, "Site", StringComparison.OrdinalIgnoreCase) == 0) {
132if (String.Compare("file:", 0, m_context.Identity.CodeBase, 0, 5, StringComparison.OrdinalIgnoreCase) == 0) {
174if (String.Compare("file:", 0, m_context.Identity.CodeBase, 0, 5, StringComparison.OrdinalIgnoreCase) != 0) {
system\security\policy\strongname.cs (11)
28private String m_name;
41public StrongName( StrongNamePublicKeyBlob blob, String name, Version version ) : this(blob, name, version, null)
45internal StrongName(StrongNamePublicKeyBlob blob, String name, Version version, Assembly assembly)
49if (String.IsNullOrEmpty(name))
77public String Name
116internal static bool CompareNames( String asmName, String mcName )
119return String.Compare( mcName, 0, asmName, 0, mcName.Length - 1, StringComparison.OrdinalIgnoreCase) == 0;
121return String.Compare( mcName, asmName, StringComparison.OrdinalIgnoreCase) == 0;
161if (String.Compare(element.Tag, "StrongName", StringComparison.Ordinal) != 0)
179public override String ToString()
system\security\securitydocument.cs (22)
50String ISecurityElementFactory.GetTag()
55String ISecurityElementFactory.Attribute( String attributeName )
102public void AddString( String str, ref int position )
119public void AppendString( String str, ref int position )
131public static int EncodedStringSize( String str )
136public String GetString( ref int position )
141public String GetString( ref int position, bool bCreate )
224AddString( (String)elCurrent.m_lAttributes[i], ref position );
225AddString( (String)elCurrent.m_lAttributes[i+1], ref position );
265String strTag = GetString( ref position, bCreate );
272String strName = GetString( ref position, bCreate );
273String strValue = GetString( ref position, bCreate );
281String strText = GetString( ref position, bCreate );
297public String GetTagForElement( int position )
305String strTag = GetString( ref position );
347public String GetAttributeForElement( int position, String attributeName )
355String strRetValue = null;
363String strName = GetString( ref position );
364String strValue = GetString( ref position );
366if (String.Equals( strName, attributeName ))
system\security\securityelement.cs (87)
35String GetTag();
37String Attribute( String attributeName );
44internal String m_strTag;
45internal String m_strText;
53private const String s_strIndent = " ";
58private static readonly String[] s_escapeStringPairs = new String[]
83String ISecurityElementFactory.GetTag()
93String ISecurityElementFactory.Attribute( String attributeName )
101public static SecurityElement FromString( String xml )
111public SecurityElement( String tag )
117throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), tag ) );
124public SecurityElement( String tag, String text )
130throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), tag ) );
133throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementText" ), text ) );
142public String Tag
156throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), value ) );
201String attrName = (String)enumerator.Key;
202String attrValue = (String)enumerator.Value;
205throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementName" ), (String)enumerator.Current ) );
208throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementValue" ), (String)enumerator.Value ) );
219public String Text
235throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), value ) );
292internal void AddAttributeSafe( String name, String value )
305String strAttrName = (String)m_lAttributes[i];
307if (String.Equals(strAttrName, name))
316public void AddAttribute( String name, String value )
325throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementName" ), name ) );
328throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementValue" ), value ) );
386if (!String.Equals(m_strTag, other.m_strTag))
390if (!String.Equals(m_strText, other.m_strText))
412String lhs = (String)m_lAttributes[i];
413String rhs = (String)other.m_lAttributes[i];
415if (!String.Equals(lhs, rhs))
465public static bool IsValidTag( String tag )
474public static bool IsValidText( String text )
483public static bool IsValidAttributeName( String name )
489public static bool IsValidAttributeValue( String value )
497private static String GetEscapeSequence( char c )
504String strEscSeq = s_escapeStringPairs[i];
505String strEscValue = s_escapeStringPairs[i+1];
515public static String Escape( String str )
557private static String GetUnescapeSequence( String str, int index, out int newIndex )
566String strEscSeq = s_escapeStringPairs[i];
567String strEscValue = s_escapeStringPairs[i+1];
571if (length <= maxCompareLength && String.Compare( strEscValue, 0, str, index, length, StringComparison.Ordinal) == 0)
583private static String Unescape( String str )
625private delegate void ToStringHelperFunc( Object obj, String str );
627private static void ToStringHelperStringBuilder( Object obj, String str )
632private static void ToStringHelperStreamWriter( Object obj, String str )
637public override String ToString ()
651private void ToString( String indent, Object obj, ToStringHelperFunc func )
688String strAttrName = (String)m_lAttributes[i];
689String strAttrValue = (String)m_lAttributes[i+1];
772public String Attribute( String name )
792String strAttrName = (String)m_lAttributes[i];
794if (String.Equals(strAttrName, name))
796String strAttrValue = (String)m_lAttributes[i+1];
807public SecurityElement SearchForChildByTag( String tag )
828if (current != null && String.Equals(current.Tag, tag))
866internal String SearchForTextOfLocalName(String strLocalName)
890String current = ((SecurityElement)enumerator.Current).SearchForTextOfLocalName( strLocalName );
898public String SearchForTextOfTag( String tag )
912if (String.Equals(m_strTag, tag))
923String current = ((SecurityElement)enumerator.Current).SearchForTextOfTag( tag );
system\security\securityexception.cs (63)
39private String m_debugString; // NOTE: If you change the name of this field, you'll have to update SOS as well!
42private String m_permissionThatFailed;
43private String m_demanded;
44private String m_granted;
45private String m_refused;
46private String m_denied;
47private String m_permitOnly;
50private String m_strMethodInfo;
52private String m_url;
54private const String ActionName = "Action";
55private const String FirstPermissionThatFailedName = "FirstPermissionThatFailed";
56private const String DemandedName = "Demanded";
57private const String GrantedSetName = "GrantedSet";
58private const String RefusedSetName = "RefusedSet";
59private const String DeniedName = "Denied";
60private const String PermitOnlyName = "PermitOnly";
61private const String Assembly_Name = "Assembly";
62private const String MethodName_Serialized = "Method";
63private const String MethodName_String = "Method_String";
64private const String ZoneName = "Zone";
65private const String UrlName = "Url";
87String message = "";
98message = String.Format(CultureInfo.InvariantCulture, GetResString("Security_Generic"), demand.GetType().AssemblyQualifiedName );
100message = String.Format(CultureInfo.InvariantCulture, GetResString("Security_Generic"), permThatFailed.GetType().AssemblyQualifiedName);
167public SecurityException(String message)
176public SecurityException(String message, Type type )
186public SecurityException(String message, Type type, String state )
196public SecurityException(String message, Exception inner)
218internal SecurityException( String message, PermissionSet grantedSetObj, PermissionSet refusedSetObj )
239m_permissionThatFailed = (String)info.GetValueNoThrow(FirstPermissionThatFailedName, typeof(String));
240m_demanded = (String)info.GetValueNoThrow(DemandedName, typeof(String));
241m_granted = (String)info.GetValueNoThrow(GrantedSetName, typeof(String));
242m_refused = (String)info.GetValueNoThrow(RefusedSetName, typeof(String));
243m_denied = (String)info.GetValueNoThrow(DeniedName, typeof(String));
244m_permitOnly = (String)info.GetValueNoThrow(PermitOnlyName, typeof(String));
247m_strMethodInfo = (String)info.GetValueNoThrow(MethodName_String, typeof(String));
249m_url = (String)info.GetValueNoThrow(UrlName, typeof(String));
388public String PermissionState
419public String GrantedSet
434public String RefusedSet
536public String Url
551private void ToStringHelper(StringBuilder sb, String resourceString, Object attr)
555String attrString = attr as String;
567private String ToString(bool includeSensitiveInfo, bool includeBaseInfo)
630public override String ToString()
646info.AddValue(FirstPermissionThatFailedName, m_permissionThatFailed, typeof(String));
647info.AddValue(DemandedName, m_demanded, typeof(String));
648info.AddValue(GrantedSetName, m_granted, typeof(String));
649info.AddValue(RefusedSetName, m_refused, typeof(String));
650info.AddValue(DeniedName, m_denied, typeof(String));
651info.AddValue(PermitOnlyName, m_permitOnly, typeof(String));
654info.AddValue(MethodName_String, m_strMethodInfo, typeof(String));
656info.AddValue(UrlName, m_url, typeof(String));
system\security\securitymanager.cs (8)
180String fullPath = Path.GetFullPath( path );
217throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "configuration" ) );
221throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "mscorlib" ) );
225throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "security" ) );
229throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "policy" ) );
235throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "PolicyLevel" ) );
668internal static extern bool IsSameType(String strLeft, String strRight);
system\security\util\stringexpressionset.cs (69)
39protected String m_expressions;
41protected String[] m_expressionsArray;
56public StringExpressionSet( String str )
67public StringExpressionSet( bool ignoreCase, String str, bool throwOnRelative )
103private static String StaticProcessWholeString( String str )
108private static String StaticProcessSingleString( String str )
113protected virtual String ProcessWholeString( String str )
118protected virtual String ProcessSingleString( String str )
126public void AddExpressions( String str )
153String[] arystr = Split( str );
162String temp = ProcessSingleString( arystr[index] );
189public void AddExpressions( String[] str, bool checkForDuplicates, bool needFullPath )
215internal static ArrayList CreateListFromExpressions(String[] str, bool needFullPath)
230String oneString = StaticProcessWholeString( str[index] );
235String temp = StaticProcessSingleString(oneString);
268protected String[] Split( String expressions )
272List<String> tempList = new List<String>();
274String[] quoteSplit = expressions.Split( '\"' );
280String[] semiSplit = quoteSplit[i].Split( ';' );
294String[] finalArray = new String[tempList.Count];
301finalArray[index++] = (String)enumerator.Current;
318String[] expressionsArray = Split( m_expressions );
326String temp = ProcessSingleString( expressionsArray[index] );
380if (!StringSubsetStringExpression( (String)this.m_list[index], ses, m_ignoreCase ))
402if (!StringSubsetStringExpressionPathDiscovery( (String)this.m_list[index], ses, m_ignoreCase ))
437unionSet.AddSingleExpressionNoDuplicates( (String)smaller.m_list[index] );
465if (StringSubsetString( (String)this.m_list[this_index], (String)ses.m_list[ses_index], m_ignoreCase ))
471intersectSet.AddSingleExpressionNoDuplicates( (String)this.m_list[this_index] );
473else if (StringSubsetString( (String)ses.m_list[ses_index], (String)this.m_list[this_index], m_ignoreCase ))
479intersectSet.AddSingleExpressionNoDuplicates( (String)ses.m_list[ses_index] );
507String currentString = (String)enumerator.Current;
547public String[] UnsafeToStringArray()
551m_expressionsArray = (String[])m_list.ToArray(typeof(String));
563private bool StringSubsetStringExpression( String left, StringExpressionSet right, bool ignoreCase )
567if (StringSubsetString( left, (String)right.m_list[index], ignoreCase ))
576private static bool StringSubsetStringExpressionPathDiscovery( String left, StringExpressionSet right, bool ignoreCase )
580if (StringSubsetStringPathDiscovery( left, (String)right.m_list[index], ignoreCase ))
589protected virtual bool StringSubsetString( String left, String right, bool ignoreCase )
600return String.Compare( right, left, strComp) == 0;
604return String.Compare( left, 0, right, 0, right.Length, strComp) == 0;
609return String.Compare( right, 0, left, 0, right.Length, strComp) == 0;
614return String.Compare( right, 0, left, 0, right.Length, strComp) == 0;
622protected static bool StringSubsetStringPathDiscovery( String left, String right, bool ignoreCase )
632return String.Compare( right, left, strComp) == 0;
636String shortString, longString;
649if (String.Compare( shortString, 0, longString, 0, shortString.Length, strComp) != 0)
670protected void AddSingleExpressionNoDuplicates( String expression )
683if (StringSubsetString( (String)this.m_list[index], expression, m_ignoreCase ))
687else if (StringSubsetString( expression, (String)this.m_list[index], m_ignoreCase ))
715if (StringSubsetString( (String)this.m_list[j], (String)this.m_list[i], m_ignoreCase ))
719else if (StringSubsetString( (String)this.m_list[i], (String)this.m_list[j], m_ignoreCase ))
738internal static extern void GetLongPathName( String path, StringHandleOnStack retLongPath );
743internal static String CanonicalizePath( String path )
system\security\util\tokenizer.cs (23)
87private String _inString;
98private String[] _searchStrings;
99private String[] _replaceStrings;
103private String _inNestedString;
128internal Tokenizer (String input)
136internal Tokenizer (String input, String[] searchStrings, String[] replaceStrings)
285String fakeReadString = new String(' ', reader.NumCharEncountered);
457if (0==String.Compare(_searchStrings[istr], 0, _inString, _inIndex-1, _searchStrings[istr].Length, StringComparison.Ordinal))
640String[] aStrings;
650static uint HashString(String str)
682aStrings = new String[cStringsMax];
686bool CompareStringAndChars(String str, char [] a, int l)
698public String MakeString()
718String [] aStringsNew = new String[cNewMax];
744String str;
767private String GetStringToken ()
815internal String[] m_block = new String[16];
858internal void AddString( String str )
904internal String GetNextString()
system\security\util\urlstring.cs (74)
30private String m_protocol;
32private String m_userpass;
38private const String m_defaultProtocol = "file";
43private String m_urlOriginal;
51private String m_fullurl;
123private String UnescapeURL(String url)
207private String ParseProtocol(String url)
209String temp;
224String.Compare(url, 0, m_defaultProtocol, 0, index, StringComparison.OrdinalIgnoreCase) == 0)
281private String ParsePort(String url)
283String temp = url;
387(String.Compare(url, curCmpIdx, "//?/", 0, 4, StringComparison.OrdinalIgnoreCase) == 0 ||
388String.Compare(url, curCmpIdx, "//./", 0, 4, StringComparison.OrdinalIgnoreCase) == 0))
411(String.Compare(url, curCmpIdx, "\\\\?\\", 0, 4, StringComparison.OrdinalIgnoreCase) == 0 ||
412String.Compare(url, curCmpIdx, "\\\\?/", 0, 4, StringComparison.OrdinalIgnoreCase) == 0 ||
413String.Compare(url, curCmpIdx, "\\\\.\\", 0, 4, StringComparison.OrdinalIgnoreCase) == 0 ||
414String.Compare(url, curCmpIdx, "\\\\./", 0, 4, StringComparison.OrdinalIgnoreCase) == 0))
468private String PreProcessURL(String url, bool isFileURL)
480private void ParseFileURL(String url)
482String temp = url;
506String localSite;
553localSite = String.SmallCharToUpper( localSite );
568String directoryString = temp.Substring( index + 1 );
583private void ParseNonFileURL(String url)
585String temp = url;
596String site = temp.Substring( 0, index );
600String directoryString = temp.Substring( index + 1 );
614void DoFastChecks( String url )
640void ParseString( String url, bool parsed )
651String temp = ParseProtocol(url);
653bool fileProtocol = (String.Compare( m_protocol, "file", StringComparison.OrdinalIgnoreCase) == 0);
676public String Scheme
686public String Host
703public String Port
716public String Directory
747if (String.Equals(m_protocol, "file", StringComparison.OrdinalIgnoreCase) && !m_isUncShare)
757String.IsNullOrEmpty(directory);
765public String GetFileName()
769if (String.Compare( m_protocol, "file", StringComparison.OrdinalIgnoreCase) != 0)
772String intermediateDirectory = this.Directory.Replace( '/', '\\' );
774String directory = this.Host.Replace( '/', '\\' );
797public String GetDirectoryName()
801if (String.Compare( m_protocol, "file", StringComparison.OrdinalIgnoreCase ) != 0)
804String intermediateDirectory = this.Directory.Replace( '/', '\\' );
816String directory = this.Host.Replace( '/', '\\' );
870if (String.Compare( normalUrl1.m_protocol, normalUrl2.m_protocol, StringComparison.OrdinalIgnoreCase) == 0 &&
894public override String ToString()
955if (String.Compare( normalUrl1.m_protocol, normalUrl2.m_protocol, StringComparison.OrdinalIgnoreCase) != 0)
960if (String.Compare( normalUrl1.m_protocol, "file", StringComparison.OrdinalIgnoreCase) == 0)
968if (String.Compare( normalUrl1.m_userpass, normalUrl2.m_userpass, StringComparison.Ordinal) != 0)
986internal String NormalizeUrl()
991if (String.Compare( m_protocol, "file", StringComparison.OrdinalIgnoreCase) == 0)
1020if (String.Compare( m_protocol, "file", StringComparison.OrdinalIgnoreCase) != 0)
1026String localSite = m_localSite.ToString();
1032String deviceName = null;
1064private static extern void GetDeviceName( String driveLetter, StringHandleOnStack retDeviceName );
1084public DirectoryString( String directory, bool checkForIllegalChars )
1091private ArrayList CreateSeparatedString(String directory)
1100String[] separatedArray = directory.Split(m_separators);
1142return this.m_separatedSite.Count == 0 || this.m_separatedSite.Count > 0 && String.Compare((String)this.m_separatedSite[0], "*", StringComparison.Ordinal) == 0;
1146return String.Compare((String)operand.m_separatedSite[0], "*", StringComparison.Ordinal) == 0;
1160public LocalSiteString( String site )
1170private ArrayList CreateSeparatedString(String directory)
1179String[] separatedArray = directory.Split(m_separators);
1225return this.m_separatedSite.Count == 0 || this.m_separatedSite.Count > 0 && String.Compare((String)this.m_separatedSite[0], "*", StringComparison.Ordinal) == 0;
1229return String.Compare((String)operand.m_separatedSite[0], "*", StringComparison.Ordinal) == 0;
system\security\util\xmlutil.cs (56)
41private const String BuiltInPermission = "System.Security.Permissions.";
43private const String BuiltInMembershipCondition = "System.Security.Policy.";
44private const String BuiltInCodeGroup = "System.Security.Policy.";
45private const String BuiltInApplicationSecurityManager = "System.Security.Policy.";
55NewPermissionElement (String name)
63AddClassAttribute( SecurityElement element, Type type, String typename )
78out String className,
79out String assemblyName, // for example "WindowsBase"
80out String assemblyVersion)
87String fullClassName = el.Attribute( "class" );
111String assemblyFullName = fullClassName.Substring(commaIndex + 1);
120String requiredNamespace,
121out String className,
131String fullClassName = el.Attribute( "class" );
183public static String SecurityObjectToXmlString(Object ob)
194public static Object XmlStringToSecurityObject(String s)
209throw new ArgumentException( String.Format( null, Environment.GetResourceString( "Argument_WrongElementType" ), "<Permission>" ) ) ;
212String className;
254if (String.Compare(className, classNameStart, "UIPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
261if (String.Compare(className, classNameStart, "FileIOPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
272if (String.Compare(className, classNameStart, "RegistryPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
279if (String.Compare(className, classNameStart, "SecurityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
294if (String.Compare(className, classNameStart, "PrincipalPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
304if (String.Compare(className, classNameStart, "ReflectionPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
311if (String.Compare(className, classNameStart, "FileDialogPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
323if (String.Compare(className, classNameStart, "EnvironmentPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
330if (String.Compare(className, classNameStart, "UrlIdentityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
337if (String.Compare(className, classNameStart, "GacIdentityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
350if (String.Compare(className, classNameStart, "SiteIdentityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
357if (String.Compare(className, classNameStart, "ZoneIdentityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
365if (String.Compare(className, classNameStart, "KeyContainerPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
375if (String.Compare(className, classNameStart, "HostProtectionPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
383if (String.Compare(className, classNameStart, "PublisherIdentityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
391if (String.Compare(className, classNameStart, "StrongNameIdentityPermission", 0, classNameLength, StringComparison.Ordinal) == 0)
398if (String.Compare(className, classNameStart, "IsolatedStorageFilePermission", 0, classNameLength, StringComparison.Ordinal) == 0)
434throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_WrongElementType" ), "<CodeGroup>" ) ) ;
437String className;
454if (String.Compare(className, classNameStart, "NetCodeGroup", 0, classNameLength, StringComparison.Ordinal) == 0)
461if (String.Compare(className, classNameStart, "FileCodeGroup", 0, classNameLength, StringComparison.Ordinal) == 0)
467if (String.Compare(className, classNameStart, "UnionCodeGroup", 0, classNameLength, StringComparison.Ordinal) == 0)
474if (String.Compare(className, classNameStart, "FirstMatchCodeGroup", 0, classNameLength, StringComparison.Ordinal) == 0)
508throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_WrongElementType" ), "<IMembershipCondition>" ) ) ;
511String className;
545if (String.Compare(className, classNameStart, "AllMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
552if (String.Compare(className, classNameStart, "UrlMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
565if (String.Compare(className, classNameStart, "HashMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
577if (String.Compare(className, classNameStart, "SiteMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
584if (String.Compare(className, classNameStart, "ZoneMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
593if (String.Compare(className, classNameStart, "PublisherMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
601if (String.Compare(className, classNameStart, "StrongNameMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
608if (String.Compare(className, classNameStart, "ApplicationDirectoryMembershipCondition", 0, classNameLength, StringComparison.Ordinal) == 0)
636String className = el.Attribute( "class" );
643throw new ArgumentException( String.Format( null, Environment.GetResourceString("Argument_InvalidXMLMissingAttr"), "class") );
674String sUnrestricted = el.Attribute( "Unrestricted" );
683public static String BitFieldEnumToString( Type type, Object value )
698String sFlag = Enum.GetName( type, flag );
system\single.cs (19)
180public override String ToString() {
181Contract.Ensures(Contract.Result<String>() != null);
186public String ToString(IFormatProvider provider) {
187Contract.Ensures(Contract.Result<String>() != null);
192public String ToString(String format) {
193Contract.Ensures(Contract.Result<String>() != null);
198public String ToString(String format, IFormatProvider provider) {
199Contract.Ensures(Contract.Result<String>() != null);
211public static float Parse(String s) {
215public static float Parse(String s, NumberStyles style) {
220public static float Parse(String s, IFormatProvider provider) {
224public static float Parse(String s, NumberStyles style, IFormatProvider provider) {
229private static float Parse(String s, NumberStyles style, NumberFormatInfo info) {
233public static Boolean TryParse(String s, out Single result) {
237public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Single result) {
242private static Boolean TryParse(String s, NumberStyles style, NumberFormatInfo info, out Single result) {
249String sTrim = s.Trim();
system\string.cs (325)
50, IComparable<String>, IEnumerable<char>, IEquatable<String>
76public static readonly String Empty;
84public static String Join(String separator, params String[] value) {
92public static String Join(String separator, params Object[] values) {
98return String.Empty;
101separator = String.Empty;
105String value = values[0].ToString();
122public static String Join<T>(String separator, IEnumerable<T> values) {
125Contract.Ensures(Contract.Result<String>() != null);
129separator = String.Empty;
133return String.Empty;
161public static String Join(String separator, IEnumerable<String> values) {
164Contract.Ensures(Contract.Result<String>() != null);
168separator = String.Empty;
171using(IEnumerator<String> en = values.GetEnumerator()) {
173return String.Empty;
204public unsafe static String Join(String separator, String[] value, int startIndex, int count) {
220separator = String.Empty;
225return String.Empty;
249return String.Empty;
269private unsafe static int CompareOrdinalIgnoreCaseHelper(String strA, String strB)
309internal static extern int nativeCompareOrdinalEx(String strA, int indexA, String strB, int indexB, int count);
317unsafe internal static extern int nativeCompareOrdinalIgnoreCaseWC(String strA, sbyte *strBBytes);
334String strOut = FastAllocateString(length);
364private unsafe static bool EqualsHelper(String strA, String strB)
418private unsafe static bool EqualsIgnoreCaseAsciiHelper(String strA, String strB)
462private unsafe static int CompareOrdinalHelper(String strA, String strB)
554String str = obj as String;
570public bool Equals(String value) {
588public bool Equals(String value, StringComparison comparisonType) {
638public static bool Equals(String a, String b) {
655public static bool Equals(String a, String b, StringComparison comparisonType) {
705public static bool operator == (String a, String b) {
706return String.Equals(a, b);
709public static bool operator != (String a, String b) {
710return !String.Equals(a, b);
793public static bool IsNullOrEmpty(String value) {
798public static bool IsNullOrWhiteSpace(String value) {
975public String [] Split(params char [] separator) {
976Contract.Ensures(Contract.Result<String[]>() != null);
992Contract.Ensures(Contract.Result<String[]>() != null);
997public String[] Split(char[] separator, StringSplitOptions options) {
998Contract.Ensures(Contract.Result<String[]>() != null);
1003public String[] Split(char[] separator, int count, StringSplitOptions options)
1005Contract.Ensures(Contract.Result<String[]>() != null);
1010internal String[] SplitInternal(char[] separator, int count, StringSplitOptions options)
1018Contract.Ensures(Contract.Result<String[]>() != null);
1025return new String[0];
1033String[] stringArray = new String[1];
1049public String [] Split(String[] separator, StringSplitOptions options) {
1050Contract.Ensures(Contract.Result<String[]>() != null);
1055public String[] Split(String[] separator, Int32 count, StringSplitOptions options) {
1073return new String[0];
1082String[] stringArray = new String[1];
1100private String[] InternalSplitKeepEmptyEntries(Int32 [] sepList, Int32 [] lengthList, Int32 numReplaces, int count) {
1103Contract.Ensures(Contract.Result<String[]>() != null);
1113String[] splitStrings = new String[numActualReplaces+1];
1127splitStrings[arrIndex] = String.Empty;
1136private String[] InternalSplitOmitEmptyEntries(Int32[] sepList, Int32[] lengthList, Int32 numReplaces, int count) {
1139Contract.Ensures(Contract.Result<String[]>() != null);
1146String[] splitStrings = new String[maxItems];
1173String[] stringArray = splitStrings;
1175stringArray = new String[arrIndex];
1230private unsafe int MakeSeparatorList(String[] separators, ref int[] sepList, ref int[] lengthList) {
1240String separator = separators[j];
1241if (String.IsNullOrEmpty(separator)) {
1247|| String.CompareOrdinal(this, i, separator, 0, currentSepLength) == 0) {
1263public String Substring (int startIndex) {
1270public String Substring(int startIndex, int length) {
1291return String.Empty;
1306String result = FastAllocateString(length);
1319public String Trim(params char[] trimChars) {
1327public String TrimStart(params char[] trimChars) {
1336public String TrimEnd(params char[] trimChars) {
1371unsafe static private String CreateString(sbyte *value, int startIndex, int length, Encoding enc) {
1402unsafe static internal String CreateStringFromEncoding(
1415return String.Empty;
1417String s = FastAllocateString(stringLength);
1503public String Normalize()
1515public String Normalize(NormalizationForm normalizationForm)
1534internal extern static String FastAllocateString(int length);
1537unsafe private static void FillStringChecked(String dest, int destPos, String src)
1577private String CtorCharArray(char [] value)
1580String result = FastAllocateString(value.Length);
1590return String.Empty;
1594private String CtorCharArrayStartLength(char [] value, int startIndex, int length)
1610String result = FastAllocateString(length);
1620return String.Empty;
1624private String CtorCharCount(char c, int count)
1627String result = FastAllocateString(count);
1659return String.Empty;
1698private unsafe String CtorCharPtr(char *ptr)
1701return String.Empty;
1713return String.Empty;
1715String result = FastAllocateString(count);
1726private unsafe String CtorCharPtrStartLength(char *ptr, int startIndex, int length)
1745return String.Empty;
1747String result = FastAllocateString(length);
1775public static int Compare(String strA, String strB) {
1786public static int Compare(String strA, String strB, bool ignoreCase)
1799public static int Compare(String strA, String strB, StringComparison comparisonType)
1862public static int Compare(String strA, String strB, CultureInfo culture, CompareOptions options) {
1880public static int Compare(String strA, String strB, bool ignoreCase, CultureInfo culture) {
1897public static int Compare(String strA, int indexA, String strB, int indexB, int length) {
1921public static int Compare(String strA, int indexA, String strB, int indexB, int length, bool ignoreCase) {
1949public static int Compare(String strA, int indexA, String strB, int indexB, int length, bool ignoreCase, CultureInfo culture) {
1983public static int Compare(String strA, int indexA, String strB, int indexB, int length, CultureInfo culture, CompareOptions options) {
2009public static int Compare(String strA, int indexA, String strB, int indexB, int length, StringComparison comparisonType) {
2108if (!(value is String)) {
2112return String.Compare(this,(String)value, StringComparison.CurrentCulture);
2118public int CompareTo(String strB) {
2129public static int CompareOrdinal(String strA, String strB) {
2158public static int CompareOrdinal(String strA, int indexA, String strB, int indexB, int length) {
2182public Boolean EndsWith(String value) {
2189public Boolean EndsWith(String value, StringComparison comparisonType) {
2232public Boolean EndsWith(String value, Boolean ignoreCase, CultureInfo culture) {
2307public int IndexOf(String value) {
2316public int IndexOf(String value, int startIndex) {
2325public int IndexOf(String value, int startIndex, int count) {
2339public int IndexOf(String value, StringComparison comparisonType) {
2344public int IndexOf(String value, int startIndex, StringComparison comparisonType) {
2350public int IndexOf(String value, int startIndex, int count, StringComparison comparisonType) {
2441public int LastIndexOf(String value) {
2446public int LastIndexOf(String value, int startIndex) {
2451public int LastIndexOf(String value, int startIndex, int count) {
2461public int LastIndexOf(String value, StringComparison comparisonType) {
2466public int LastIndexOf(String value, int startIndex, StringComparison comparisonType) {
2472public int LastIndexOf(String value, int startIndex, int count, StringComparison comparisonType) {
2530public String PadLeft(int totalWidth) {
2535public String PadLeft(int totalWidth, char paddingChar) {
2540public String PadRight(int totalWidth) {
2545public String PadRight(int totalWidth, char paddingChar) {
2553private extern String PadHelper(int totalWidth, char paddingChar, bool isRightPadded);
2558public Boolean StartsWith(String value) {
2569public Boolean StartsWith(String value, StringComparison comparisonType) {
2619public Boolean StartsWith(String value, Boolean ignoreCase, CultureInfo culture) {
2640public String ToLower() {
2641Contract.Ensures(Contract.Result<String>() != null);
2648public String ToLower(CultureInfo culture) {
2652Contract.Ensures(Contract.Result<String>() != null);
2659public String ToLowerInvariant() {
2660Contract.Ensures(Contract.Result<String>() != null);
2667public String ToUpper() {
2668Contract.Ensures(Contract.Result<String>() != null);
2676public String ToUpper(CultureInfo culture) {
2680Contract.Ensures(Contract.Result<String>() != null);
2688public String ToUpperInvariant() {
2689Contract.Ensures(Contract.Result<String>() != null);
2696public override String ToString() {
2697Contract.Ensures(Contract.Result<String>() != null);
2702public String ToString(IFormatProvider provider) {
2703Contract.Ensures(Contract.Result<String>() != null);
2736public String Trim() {
2737Contract.Ensures(Contract.Result<String>() != null);
2745private String TrimHelper(int trimType) {
2769private String TrimHelper(char[] trimChars, int trimType) {
2807private String CreateTrimmedString(int start, int end) {
2816return String.Empty;
2822public String Insert(int startIndex, String value)
2828Contract.Ensures(Contract.Result<String>() != null);
2829Contract.Ensures(Contract.Result<String>().Length == this.Length + value.Length);
2836return String.Empty;
2837String result = FastAllocateString(newLength);
2861private extern String ReplaceInternal(char oldChar, char newChar);
2863public String Replace(char oldChar, char newChar)
2865Contract.Ensures(Contract.Result<String>() != null);
2866Contract.Ensures(Contract.Result<String>().Length == this.Length);
2877private extern String ReplaceInternal(String oldValue, String newValue);
2879public String Replace(String oldValue, String newValue)
2884Contract.Ensures(Contract.Result<String>() != null);
2910public String Remove(int startIndex, int count)
2921Contract.Ensures(Contract.Result<String>() != null);
2922Contract.Ensures(Contract.Result<String>().Length == this.Length - count);
2926return String.Empty;
2927String result = FastAllocateString(newLength);
2954Contract.Ensures(Contract.Result<String>() != null);
2960public static String Format(String format, Object arg0) {
2961Contract.Ensures(Contract.Result<String>() != null);
2965public static String Format(String format, Object arg0, Object arg1) {
2966Contract.Ensures(Contract.Result<String>() != null);
2970public static String Format(String format, Object arg0, Object arg1, Object arg2) {
2971Contract.Ensures(Contract.Result<String>() != null);
2975public static String Format(String format, params Object[] args) {
2982Contract.Ensures(Contract.Result<String>() != null);
2988public static String Format(IFormatProvider provider, String format, Object arg0) {
2989Contract.Ensures(Contract.Result<String>() != null);
2993public static String Format(IFormatProvider provider, String format, Object arg0, Object arg1) {
2994Contract.Ensures(Contract.Result<String>() != null);
2998public static String Format(IFormatProvider provider, String format, Object arg0, Object arg1, Object arg2) {
2999Contract.Ensures(Contract.Result<String>() != null);
3003public static String Format(IFormatProvider provider, String format, params Object[] args) {
3010Contract.Ensures(Contract.Result<String>() != null);
3016private static String FormatHelper(IFormatProvider provider, String format, ParamsArray args) {
3027unsafe public static String Copy (String str) {
3031Contract.Ensures(Contract.Result<String>() != null);
3036String result = FastAllocateString(length);
3045public static String Concat(Object arg0) {
3046Contract.Ensures(Contract.Result<String>() != null);
3051return String.Empty;
3056public static String Concat(Object arg0, Object arg1) {
3057Contract.Ensures(Contract.Result<String>() != null);
3062arg0 = String.Empty;
3066arg1 = String.Empty;
3071public static String Concat(Object arg0, Object arg1, Object arg2) {
3072Contract.Ensures(Contract.Result<String>() != null);
3077arg0 = String.Empty;
3081arg1 = String.Empty;
3085arg2 = String.Empty;
3092public static String Concat(Object arg0, Object arg1, Object arg2, Object arg3, __arglist)
3094Contract.Ensures(Contract.Result<String>() != null);
3121public static String Concat(params Object[] args) {
3125Contract.Ensures(Contract.Result<String>() != null);
3128String[] sArgs = new String[args.Length];
3133sArgs[i] = ((value==null)?(String.Empty):(value.ToString()));
3134if (sArgs[i] == null) sArgs[i] = String.Empty; // value.ToString() above could have returned null
3145public static String Concat<T>(IEnumerable<T> values) {
3148Contract.Ensures(Contract.Result<String>() != null);
3168public static String Concat(IEnumerable<String> values) {
3171Contract.Ensures(Contract.Result<String>() != null);
3175using(IEnumerator<String> en = values.GetEnumerator()) {
3187public static String Concat(String str0, String str1) {
3188Contract.Ensures(Contract.Result<String>() != null);
3189Contract.Ensures(Contract.Result<String>().Length ==
3196return String.Empty;
3207String result = FastAllocateString(str0Length + str1.Length);
3216public static String Concat(String str0, String str1, String str2) {
3217Contract.Ensures(Contract.Result<String>() != null);
3218Contract.Ensures(Contract.Result<String>().Length ==
3225return String.Empty;
3229str0 = String.Empty;
3233str1 = String.Empty;
3237str2 = String.Empty;
3242String result = FastAllocateString(totalLength);
3251public static String Concat(String str0, String str1, String str2, String str3) {
3252Contract.Ensures(Contract.Result<String>() != null);
3253Contract.Ensures(Contract.Result<String>().Length ==
3261return String.Empty;
3265str0 = String.Empty;
3269str1 = String.Empty;
3273str2 = String.Empty;
3277str3 = String.Empty;
3282String result = FastAllocateString(totalLength);
3292private static String ConcatArray(String[] values, int totalLength) {
3293String result = FastAllocateString(totalLength);
3307public static String Concat(params String[] values) {
3310Contract.Ensures(Contract.Result<String>() != null);
3316String[] internalValues = new String[values.Length];
3320internalValues[i] = ((value==null)?(String.Empty):(value));
3332public static String Intern(String str) {
3336Contract.Ensures(Contract.Result<String>().Length == str.Length);
3337Contract.Ensures(str.Equals(Contract.Result<String>()));
3345public static String IsInterned(String str) {
3349Contract.Ensures(Contract.Result<String>() == null || Contract.Result<String>().Length == str.Length);
3488internal unsafe static void InternalCopy(String src, IntPtr dest,int len)
system\stringcomparer.cs (19)
81String sa = x as String;
83String sb = y as String;
102String sa = x as String;
104String sb = y as String;
125public abstract int Compare(String x, String y);
126public abstract bool Equals(String x, String y);
334return String.Compare(x, y, StringComparison.OrdinalIgnoreCase);
337return String.CompareOrdinal(x, y);
348return (String.Compare(x, y, StringComparison.OrdinalIgnoreCase) == 0);
410return String.Compare(x, y, StringComparison.OrdinalIgnoreCase);
413return String.CompareOrdinal(x, y);
424return (String.Compare(x, y, StringComparison.OrdinalIgnoreCase) == 0);
440return String.InternalMarvin32HashString(obj, obj.Length, _entropy);
system\text\stringbuilder.cs (37)
68private const String CapacityField = "Capacity";
69private const String MaxCapacityField = "m_MaxCapacity";
70private const String StringValueField = "m_StringValue";
71private const String ThreadIDField = "m_currentThread";
93: this(String.Empty, capacity) {
101public StringBuilder(String value)
111public StringBuilder(String value, int capacity)
119public StringBuilder(String value, int startIndex, int length, int capacity) {
134value = String.Empty;
213persistedString = String.Empty;
330public override String ToString() {
331Contract.Ensures(Contract.Result<String>() != null);
336return String.Empty;
373public String ToString(int startIndex, int length) {
374Contract.Ensures(Contract.Result<String>() != null);
634public StringBuilder Append(String value) {
693public StringBuilder Append(String value, int startIndex, int count) {
820public StringBuilder Insert(int index, String value, int count) {
1037public StringBuilder Insert(int index, String value) {
1262public StringBuilder AppendFormat(String format, Object arg0) {
1267public StringBuilder AppendFormat(String format, Object arg0, Object arg1) {
1272public StringBuilder AppendFormat(String format, Object arg0, Object arg1, Object arg2) {
1277public StringBuilder AppendFormat(String format, params Object[] args) {
1284Contract.Ensures(Contract.Result<String>() != null);
1290public StringBuilder AppendFormat(IFormatProvider provider, String format, Object arg0) {
1295public StringBuilder AppendFormat(IFormatProvider provider, String format, Object arg0, Object arg1) {
1300public StringBuilder AppendFormat(IFormatProvider provider, String format, Object arg0, Object arg1, Object arg2) {
1305public StringBuilder AppendFormat(IFormatProvider provider, String format, params Object[] args) {
1312Contract.Ensures(Contract.Result<String>() != null);
1322internal StringBuilder AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) {
1439String sFmt = null;
1440String s = null;
1470if (s == null) s = String.Empty;
1485public StringBuilder Replace(String oldValue, String newValue) {
1535public StringBuilder Replace(String oldValue, String newValue, int startIndex, int count)
system\threading\mutex.cs (8)
52public Mutex(bool initiallyOwned, String name, out bool createdNew)
61public unsafe Mutex(bool initiallyOwned, String name, out bool createdNew, MutexSecurity mutexSecurity)
90internal Mutex(bool initiallyOwned, String name, out bool createdNew, Win32Native.SECURITY_ATTRIBUTES secAttrs)
119internal void CreateMutexWithGuaranteedCleanup(bool initiallyOwned, String name, out bool createdNew, Win32Native.SECURITY_ATTRIBUTES secAttrs)
142String m_name;
149internal MutexTryCodeHelper(bool initiallyOwned,MutexCleanupInfo cleanupInfo, String name, Win32Native.SECURITY_ATTRIBUTES secAttrs, Mutex mutex)
259public Mutex(bool initiallyOwned, String name) : this(initiallyOwned, name, out dummyBool) {
434static int CreateMutexHandle(bool initiallyOwned, String name, Win32Native.SECURITY_ATTRIBUTES securityAttribute, out SafeWaitHandle mutexHandle) {
system\timespan.cs (25)
283public static TimeSpan Parse(String s) {
287public static TimeSpan Parse(String input, IFormatProvider formatProvider) {
290public static TimeSpan ParseExact(String input, String format, IFormatProvider formatProvider) {
293public static TimeSpan ParseExact(String input, String[] formats, IFormatProvider formatProvider) {
296public static TimeSpan ParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles) {
300public static TimeSpan ParseExact(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles) {
304public static Boolean TryParse(String s, out TimeSpan result) {
307public static Boolean TryParse(String input, IFormatProvider formatProvider, out TimeSpan result) {
310public static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, out TimeSpan result) {
313public static Boolean TryParseExact(String input, String[] formats, IFormatProvider formatProvider, out TimeSpan result) {
316public static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) {
320public static Boolean TryParseExact(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) {
324public override String ToString() {
327public String ToString(String format) {
330public String ToString(String format, IFormatProvider formatProvider) {
system\timezoneinfo.cs (105)
61private String m_id;
62private String m_displayName;
63private String m_standardDisplayName;
64private String m_daylightDisplayName;
279public String Id {
285public String DisplayName {
287return (m_displayName == null ? String.Empty : m_displayName);
291public String StandardName {
293return (m_standardDisplayName == null ? String.Empty : m_standardDisplayName);
297public String DaylightName {
299return (m_daylightDisplayName == null? String.Empty : m_daylightDisplayName);
658static public DateTimeOffset ConvertTimeBySystemTimeZoneId(DateTimeOffset dateTimeOffset, String destinationTimeZoneId) {
665static public DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, String destinationTimeZoneId) {
671static public DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, String sourceTimeZoneId, String destinationTimeZoneId) {
672if (dateTime.Kind == DateTimeKind.Local && String.Compare(sourceTimeZoneId, TimeZoneInfo.Local.Id, StringComparison.OrdinalIgnoreCase) == 0) {
681else if (dateTime.Kind == DateTimeKind.Utc && String.Compare(sourceTimeZoneId, TimeZoneInfo.Utc.Id, StringComparison.OrdinalIgnoreCase) == 0) {
872return (other != null && String.Compare(this.m_id, other.m_id, StringComparison.OrdinalIgnoreCase) == 0 && HasSameRules(other));
1050public String ToSerializedString() {
1088if (String.IsNullOrEmpty(zone.StandardName)) {
1113String id,
1115String displayName,
1116String standardDisplayName,
1117String daylightDisplayName,
1145String id,
1147String displayName,
1148String standardDisplayName) {
1167String id,
1169String displayName,
1170String standardDisplayName,
1171String daylightDisplayName,
1195String id,
1197String displayName,
1198String standardDisplayName,
1199String daylightDisplayName,
1258m_id = (String)info.GetValue("Id", typeof(String));
1259m_displayName = (String)info.GetValue("DisplayName", typeof(String));
1260m_standardDisplayName = (String)info.GetValue("StandardName", typeof(String));
1261m_daylightDisplayName = (String)info.GetValue("DaylightName", typeof(String));
1424static private String FindIdFromTimeZoneInformation(Win32Native.TimeZoneInformation timeZone, out Boolean dstDisabled) {
1818String id = null;
1839if (!String.IsNullOrEmpty(dynamicTimeZoneInformation.TimeZoneKeyName)) {
1949if (String.Compare(id, c_utcId, StringComparison.OrdinalIgnoreCase) == 0) {
2311String.Format(CultureInfo.InvariantCulture, "{0}\\{1}\\Dynamic DST",
2488String.Format(CultureInfo.InvariantCulture, "{0}\\{1}",
2538String registryStandardName = key.GetValue(c_standardValue, String.Empty, RegistryValueOptions.None) as String;
2539result = String.Compare(registryStandardName, timeZone.StandardName, StringComparison.Ordinal) == 0;
2573if (String.IsNullOrEmpty(resource)) {
2574return String.Empty;
2584return String.Empty;
2601return String.Empty;
2605return String.Empty;
2623return String.Empty;
2628return String.Empty;
2662return String.Empty;
2682static private Boolean TryGetLocalizedNamesByRegistryKey(RegistryKey key, out String displayName, out String standardName, out String daylightName) {
2683displayName = String.Empty;
2684standardName = String.Empty;
2685daylightName = String.Empty;
2688String displayNameMuiResource = key.GetValue(c_muiDisplayValue, String.Empty, RegistryValueOptions.None) as String;
2689String standardNameMuiResource = key.GetValue(c_muiStandardValue, String.Empty, RegistryValueOptions.None) as String;
2690String daylightNameMuiResource = key.GetValue(c_muiDaylightValue, String.Empty, RegistryValueOptions.None) as String;
2693if (!String.IsNullOrEmpty(displayNameMuiResource)) {
2697if (!String.IsNullOrEmpty(standardNameMuiResource)) {
2701if (!String.IsNullOrEmpty(daylightNameMuiResource)) {
2706if (String.IsNullOrEmpty(displayName)) {
2707displayName = key.GetValue(c_displayValue, String.Empty, RegistryValueOptions.None) as String;
2709if (String.IsNullOrEmpty(standardName)) {
2710standardName = key.GetValue(c_standardValue, String.Empty, RegistryValueOptions.None) as String;
2712if (String.IsNullOrEmpty(daylightName)) {
2713daylightName = key.GetValue(c_daylightValue, String.Empty, RegistryValueOptions.None) as String;
2773String.Format(CultureInfo.InvariantCulture, "{0}\\{1}",
2929String id,
3533private String m_serializedText;
3563static public String GetSerializedString(TimeZoneInfo zone) {
3619static public TimeZoneInfo GetDeserializedTimeZoneInfo(String source) {
3622String id = s.GetNextStringValue(false);
3624String displayName = s.GetNextStringValue(false);
3625String standardName = s.GetNextStringValue(false);
3626String daylightName = s.GetNextStringValue(false);
3650private StringSerializer(String str) {
3669static private String SerializeSubstitute(String text) {
3794private String GetNextStringValue(Boolean canEndWithoutSeparator) {
3867throw new SerializationException(Environment.GetResourceString("Serialization_InvalidEscapeSequence", String.Empty));
3885String token = GetNextStringValue(canEndWithoutSeparator);
3916String token = GetNextStringValue(canEndWithoutSeparator);
4155return comparison == 0 ? String.Compare(x.DisplayName, y.DisplayName, StringComparison.Ordinal) : comparison;
system\type.cs (49)
91public static Type GetType(String typeName, bool throwOnError, bool ignoreCase) {
97public static Type GetType(String typeName, bool throwOnError) {
103public static Type GetType(String typeName) {
144public static Type ReflectionOnlyGetType(String typeName, bool throwIfNotFound, bool ignoreCase)
167public static Type GetTypeFromProgID(String progID)
182public static Type GetTypeFromProgID(String progID, bool throwOnError)
188public static Type GetTypeFromProgID(String progID, String server)
194public static Type GetTypeFromProgID(String progID, String server, bool throwOnError)
219public static Type GetTypeFromCLSID(Guid clsid, String server)
225public static Type GetTypeFromCLSID(Guid clsid, String server, bool throwOnError)
299abstract public Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder,Object target,
300Object[] args, ParameterModifier[] modifiers,CultureInfo culture,String[] namedParameters);
304public Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args, CultureInfo culture)
311public Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args)
367public abstract String FullName {
373public abstract String Namespace {
379public abstract String AssemblyQualifiedName {
474public MethodInfo GetMethod(String name,
492public MethodInfo GetMethod(String name,
509public MethodInfo GetMethod(String name, Type[] types, ParameterModifier[] modifiers)
522public MethodInfo GetMethod(String name,Type[] types)
535public MethodInfo GetMethod(String name, BindingFlags bindingAttr)
543public MethodInfo GetMethod(String name)
551abstract protected MethodInfo GetMethodImpl(String name,
569abstract public FieldInfo GetField(String name, BindingFlags bindingAttr);
572public FieldInfo GetField(String name) {
587public Type GetInterface(String name) {
590abstract public Type GetInterface(String name, bool ignoreCase);
629public EventInfo GetEvent(String name) {
632abstract public EventInfo GetEvent(String name,BindingFlags bindingAttr);
645public PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder,
656public PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers)
666public PropertyInfo GetProperty(String name, BindingFlags bindingAttr)
674public PropertyInfo GetProperty(String name, Type returnType, Type[] types)
684public PropertyInfo GetProperty(String name, Type[] types)
694public PropertyInfo GetProperty(String name, Type returnType)
704internal PropertyInfo GetProperty(String name, BindingFlags bindingAttr, Type returnType)
714public PropertyInfo GetProperty(String name)
722protected abstract PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr,Binder binder,
749public Type GetNestedType(String name)
754abstract public Type GetNestedType(String name, BindingFlags bindingAttr);
759public MemberInfo[] GetMember(String name) {
763virtual public MemberInfo[] GetMember(String name, BindingFlags bindingAttr)
768virtual public MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
1390Contract.Ensures(Contract.Result<String[]>() != null);
1421Contract.Ensures(Contract.ValueAtReturn<String[]>(out enumNames) != null);
1758public override String ToString()
system\typeloadexception.cs (16)
37public TypeLoadException(String message)
42public TypeLoadException(String message, Exception inner)
47public override String Message
70String format = null;
72_message = String.Format(CultureInfo.CurrentCulture, format, ClassName, AssemblyName, MessageArg);
77public String TypeName
81return String.Empty;
89private TypeLoadException(String className,
90String assemblyName,
91String messageArg,
132info.AddValue("TypeLoadClassName", ClassName, typeof(String));
133info.AddValue("TypeLoadAssemblyName", AssemblyName, typeof(String));
134info.AddValue("TypeLoadMessageArg", MessageArg, typeof(String));
141private String ClassName;
142private String AssemblyName;
143private String MessageArg;
system\uint16.cs (18)
82public override String ToString() {
83Contract.Ensures(Contract.Result<String>() != null);
88public String ToString(IFormatProvider provider) {
89Contract.Ensures(Contract.Result<String>() != null);
95public String ToString(String format) {
96Contract.Ensures(Contract.Result<String>() != null);
101public String ToString(String format, IFormatProvider provider) {
102Contract.Ensures(Contract.Result<String>() != null);
107public static ushort Parse(String s) {
112public static ushort Parse(String s, NumberStyles style) {
119public static ushort Parse(String s, IFormatProvider provider) {
124public static ushort Parse(String s, NumberStyles style, IFormatProvider provider) {
129private static ushort Parse(String s, NumberStyles style, NumberFormatInfo info) {
144public static bool TryParse(String s, out UInt16 result) {
149public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out UInt16 result) {
154private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out UInt16 result) {
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
52return String.Empty;
src\Framework\System\Windows\Controls\ContentPresenter.cs (21)
224Object.ReferenceEquals(typeof(String), newDataType) &&
227String oldString = (String)e.OldValue;
228String newString = (String)e.NewValue;
369typeof(String),
372(String) null,
382public String ContentStringFormat
384get { return (String) GetValue(ContentStringFormatProperty); }
394ctrl.OnContentStringFormatChanged((String) e.OldValue, (String) e.NewValue);
402protected virtual void OnContentStringFormatChanged(String oldContentStringFormat, String newContentStringFormat)
895template = (String.IsNullOrEmpty(format)) ? AccessTextContentTemplate : FormattingAccessTextContentTemplate;
899template = (String.IsNullOrEmpty(format)) ? StringContentTemplate : FormattingStringContentTemplate;
938return (String.IsNullOrEmpty(ContentStringFormat)) ? XmlNodeContentTemplate : FormattingXmlNodeContentTemplate;
1058EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientStringEnd, EventTrace.Keyword.KeywordGeneral, EventTrace.Level.Info, String.Format(System.Globalization.CultureInfo.InvariantCulture, "ContentPresenter.BuildVisualTree for CP {0}", container.GetHashCode()));
1087Debug.Assert(!(content is String) && !(content is UIElement)); // these are handled by different templates
1108textBlock.Text = String.Format(culture, stringFormat, content);
1120if (tc != null && (tc.CanConvertTo(context, typeof(String))))
1127textBlock.Text = String.Format(culture, "{0}", content);
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (8)
121String.Format(CultureInfo.InvariantCulture, "ItemContainerGenerator for {0} {1} - {2} items", Host.GetType().Name, label, _itemsGenerated));
1068string name = (String)peer.GetValue(FrameworkElement.NameProperty);
1069if (String.IsNullOrWhiteSpace(name))
1137if (String.Compare(token, MS.Internal.PresentationFramework.BuildInfo.WCP_PUBLIC_KEY_TOKEN, StringComparison.OrdinalIgnoreCase) == 0 ||
1138String.Compare(token, MS.Internal.PresentationFramework.BuildInfo.DEVDIV_PUBLIC_KEY_TOKEN, StringComparison.OrdinalIgnoreCase) == 0)
1147sources.Add(String.Format(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS, "{0} {1} {2}",
1256PropertyChangedEventManager.RemoveHandler(_groupStyle, OnGroupStylePropertyChanged, String.Empty);
1263PropertyChangedEventManager.AddHandler(_groupStyle, OnGroupStylePropertyChanged, String.Empty);
src\Framework\System\Windows\Controls\TextSearch.cs (17)
85new FrameworkPropertyMetadata(String.Empty /* default value */));
123new FrameworkPropertyMetadata((string)String.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
230&& (String.Compare(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo))==0))
321Debug.Assert(String.IsNullOrEmpty(matchedText) == false, "matchedText cannot be null or empty");
322Debug.Assert(String.IsNullOrEmpty(newText) == false, "newText cannot be null or empty");
346if (String.Compare(newText, temp, ignoreCase, cultureInfo) == 0)
356if (String.Compare(newText, temp, ignoreCase, cultureInfo) == 0)
414if (String.IsNullOrEmpty(newPrefix))
428if (useXml || !String.IsNullOrEmpty(primaryTextPath))
470if (!firstItem && prefix != String.Empty)
527int matchedItemIndex = FindMatchingPrefix(itemsControl, GetPrimaryTextPath(itemsControl), prefix, String.Empty, 0, false, ref wasNewCharUsed);
582if (String.IsNullOrEmpty(primaryTextPath))
604if (!String.IsNullOrEmpty(primaryText))
643return (o != null) ? o.ToString() : String.Empty;
656return String.Empty;
697Prefix = String.Empty;
779if (text != null && text != String.Empty)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (19)
3502MeasureInProgress ? "MeasureInProgress" : String.Empty);
9315List<String> list = new List<String>(count);
9335List<String> list = new List<String>(count);
11870if (!String.IsNullOrEmpty(s))
12127return String.Empty;
12129return String.Format(CultureInfo.InvariantCulture, s_format[length], args);
12324record.RevirtualizedChildren = args[2] as List<String>;
12384if (String.IsNullOrEmpty(filename) || filename == "default")
12647internal List<String> RevirtualizedChildren
12649get { return _extraData as List<String>; }
12657return String.Format(CultureInfo.InvariantCulture, "{0} {1} {2} {3} {4}",
12670List<String> children;
12820return String.Format(CultureInfo.InvariantCulture, "{0} ds: {1} ar: {2} in: {3}",
12884return String.Empty;
12894return String.Format(CultureInfo.InvariantCulture, "{0}", g.IndexFromContainer(container, returnLocalIndex:true));
12903return String.Format(CultureInfo.InvariantCulture, "{0}", localIndex);
12907return String.Format(CultureInfo.InvariantCulture, "{0}.{1}",
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (14)
6481typeof(System.String), // type
6487bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Setter)target).TargetName = (System.String)value; };
6662typeof(System.String), // type
6667bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).ElementName = (System.String)value; };
6734typeof(System.String), // type
6740bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Trigger)target).SourceName = (System.String)value; };
7505typeof(System.String), // type
7510bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.BeginStoryboard)target).Name = (System.String)value; };
7610typeof(System.String), // type
7615bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.EventTrigger)target).SourceName = (System.String)value; };
7986typeof(System.String), // type
7991bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.XmlDataProvider)target).XPath = (System.String)value; };
8109typeof(System.String), // type
8114bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).XPath = (System.String)value; };
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
120String value;
src\Framework\System\Windows\Markup\KnownTypes.cs (470)
2802if (String.CompareOrdinal(fieldName, "Text") == 0)
2806if (String.CompareOrdinal(fieldName, "Child") == 0)
2810if (String.CompareOrdinal(fieldName, "Child") == 0)
2814if (String.CompareOrdinal(fieldName, "Blocks") == 0)
2818if (String.CompareOrdinal(fieldName, "Items") == 0)
2822if (String.CompareOrdinal(fieldName, "Storyboard") == 0)
2826if (String.CompareOrdinal(fieldName, "Children") == 0)
2830if (String.CompareOrdinal(fieldName, "Child") == 0)
2834if (String.CompareOrdinal(fieldName, "Inlines") == 0)
2838if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
2842if (String.CompareOrdinal(fieldName, "Background") == 0)
2844if (String.CompareOrdinal(fieldName, "BorderBrush") == 0)
2846if (String.CompareOrdinal(fieldName, "BorderThickness") == 0)
2848if (String.CompareOrdinal(fieldName, "Child") == 0)
2852if (String.CompareOrdinal(fieldName, "Child") == 0)
2856if (String.CompareOrdinal(fieldName, "Content") == 0)
2860if (String.CompareOrdinal(fieldName, "Command") == 0)
2862if (String.CompareOrdinal(fieldName, "CommandParameter") == 0)
2864if (String.CompareOrdinal(fieldName, "CommandTarget") == 0)
2866if (String.CompareOrdinal(fieldName, "Content") == 0)
2868if (String.CompareOrdinal(fieldName, "IsPressed") == 0)
2872if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
2876if (String.CompareOrdinal(fieldName, "Children") == 0)
2880if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
2884if (String.CompareOrdinal(fieldName, "Content") == 0)
2888if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
2892if (String.CompareOrdinal(fieldName, "MaxWidth") == 0)
2894if (String.CompareOrdinal(fieldName, "MinWidth") == 0)
2896if (String.CompareOrdinal(fieldName, "Width") == 0)
2900if (String.CompareOrdinal(fieldName, "Items") == 0)
2904if (String.CompareOrdinal(fieldName, "Content") == 0)
2908if (String.CompareOrdinal(fieldName, "Content") == 0)
2910if (String.CompareOrdinal(fieldName, "ContentTemplate") == 0)
2912if (String.CompareOrdinal(fieldName, "ContentTemplateSelector") == 0)
2914if (String.CompareOrdinal(fieldName, "HasContent") == 0)
2918if (String.CompareOrdinal(fieldName, "Focusable") == 0)
2922if (String.CompareOrdinal(fieldName, "Content") == 0)
2924if (String.CompareOrdinal(fieldName, "ContentSource") == 0)
2926if (String.CompareOrdinal(fieldName, "ContentTemplate") == 0)
2928if (String.CompareOrdinal(fieldName, "ContentTemplateSelector") == 0)
2930if (String.CompareOrdinal(fieldName, "RecognizesAccessKey") == 0)
2934if (String.CompareOrdinal(fieldName, "Items") == 0)
2938if (String.CompareOrdinal(fieldName, "Background") == 0)
2940if (String.CompareOrdinal(fieldName, "BorderBrush") == 0)
2942if (String.CompareOrdinal(fieldName, "BorderThickness") == 0)
2944if (String.CompareOrdinal(fieldName, "FontFamily") == 0)
2946if (String.CompareOrdinal(fieldName, "FontSize") == 0)
2948if (String.CompareOrdinal(fieldName, "FontStretch") == 0)
2950if (String.CompareOrdinal(fieldName, "FontStyle") == 0)
2952if (String.CompareOrdinal(fieldName, "FontWeight") == 0)
2954if (String.CompareOrdinal(fieldName, "Foreground") == 0)
2956if (String.CompareOrdinal(fieldName, "HorizontalContentAlignment") == 0)
2958if (String.CompareOrdinal(fieldName, "IsTabStop") == 0)
2960if (String.CompareOrdinal(fieldName, "Padding") == 0)
2962if (String.CompareOrdinal(fieldName, "TabIndex") == 0)
2964if (String.CompareOrdinal(fieldName, "Template") == 0)
2966if (String.CompareOrdinal(fieldName, "VerticalContentAlignment") == 0)
2970if (String.CompareOrdinal(fieldName, "VisualTree") == 0)
2974if (String.CompareOrdinal(fieldName, "VisualTree") == 0)
2978if (String.CompareOrdinal(fieldName, "Setters") == 0)
2982if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
2986if (String.CompareOrdinal(fieldName, "Child") == 0)
2990if (String.CompareOrdinal(fieldName, "Children") == 0)
2992if (String.CompareOrdinal(fieldName, "Dock") == 0)
2994if (String.CompareOrdinal(fieldName, "LastChildFill") == 0)
2998if (String.CompareOrdinal(fieldName, "Document") == 0)
3002if (String.CompareOrdinal(fieldName, "Document") == 0)
3006if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3010if (String.CompareOrdinal(fieldName, "Children") == 0)
3014if (String.CompareOrdinal(fieldName, "Actions") == 0)
3018if (String.CompareOrdinal(fieldName, "Content") == 0)
3022if (String.CompareOrdinal(fieldName, "Blocks") == 0)
3026if (String.CompareOrdinal(fieldName, "Pages") == 0)
3030if (String.CompareOrdinal(fieldName, "References") == 0)
3034if (String.CompareOrdinal(fieldName, "Children") == 0)
3038if (String.CompareOrdinal(fieldName, "Blocks") == 0)
3042if (String.CompareOrdinal(fieldName, "Blocks") == 0)
3046if (String.CompareOrdinal(fieldName, "Document") == 0)
3050if (String.CompareOrdinal(fieldName, "Document") == 0)
3054if (String.CompareOrdinal(fieldName, "Document") == 0)
3058if (String.CompareOrdinal(fieldName, "Style") == 0)
3062if (String.CompareOrdinal(fieldName, "FlowDirection") == 0)
3064if (String.CompareOrdinal(fieldName, "Height") == 0)
3066if (String.CompareOrdinal(fieldName, "HorizontalAlignment") == 0)
3068if (String.CompareOrdinal(fieldName, "Margin") == 0)
3070if (String.CompareOrdinal(fieldName, "MaxHeight") == 0)
3072if (String.CompareOrdinal(fieldName, "MaxWidth") == 0)
3074if (String.CompareOrdinal(fieldName, "MinHeight") == 0)
3076if (String.CompareOrdinal(fieldName, "MinWidth") == 0)
3078if (String.CompareOrdinal(fieldName, "Name") == 0)
3080if (String.CompareOrdinal(fieldName, "Style") == 0)
3082if (String.CompareOrdinal(fieldName, "VerticalAlignment") == 0)
3084if (String.CompareOrdinal(fieldName, "Width") == 0)
3088if (String.CompareOrdinal(fieldName, "VisualTree") == 0)
3092if (String.CompareOrdinal(fieldName, "Children") == 0)
3096if (String.CompareOrdinal(fieldName, "Children") == 0)
3100if (String.CompareOrdinal(fieldName, "GradientStops") == 0)
3104if (String.CompareOrdinal(fieldName, "Children") == 0)
3106if (String.CompareOrdinal(fieldName, "Column") == 0)
3108if (String.CompareOrdinal(fieldName, "ColumnSpan") == 0)
3110if (String.CompareOrdinal(fieldName, "Row") == 0)
3112if (String.CompareOrdinal(fieldName, "RowSpan") == 0)
3116if (String.CompareOrdinal(fieldName, "Columns") == 0)
3120if (String.CompareOrdinal(fieldName, "Header") == 0)
3124if (String.CompareOrdinal(fieldName, "Content") == 0)
3128if (String.CompareOrdinal(fieldName, "Content") == 0)
3132if (String.CompareOrdinal(fieldName, "Content") == 0)
3136if (String.CompareOrdinal(fieldName, "Content") == 0)
3138if (String.CompareOrdinal(fieldName, "HasHeader") == 0)
3140if (String.CompareOrdinal(fieldName, "Header") == 0)
3142if (String.CompareOrdinal(fieldName, "HeaderTemplate") == 0)
3144if (String.CompareOrdinal(fieldName, "HeaderTemplateSelector") == 0)
3148if (String.CompareOrdinal(fieldName, "HasHeader") == 0)
3150if (String.CompareOrdinal(fieldName, "Header") == 0)
3152if (String.CompareOrdinal(fieldName, "HeaderTemplate") == 0)
3154if (String.CompareOrdinal(fieldName, "HeaderTemplateSelector") == 0)
3156if (String.CompareOrdinal(fieldName, "Items") == 0)
3160if (String.CompareOrdinal(fieldName, "VisualTree") == 0)
3164if (String.CompareOrdinal(fieldName, "Inlines") == 0)
3166if (String.CompareOrdinal(fieldName, "NavigateUri") == 0)
3170if (String.CompareOrdinal(fieldName, "Source") == 0)
3172if (String.CompareOrdinal(fieldName, "Stretch") == 0)
3176if (String.CompareOrdinal(fieldName, "Children") == 0)
3180if (String.CompareOrdinal(fieldName, "Child") == 0)
3184if (String.CompareOrdinal(fieldName, "Child") == 0)
3188if (String.CompareOrdinal(fieldName, "NameValue") == 0)
3192if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3196if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3200if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3204if (String.CompareOrdinal(fieldName, "Inlines") == 0)
3208if (String.CompareOrdinal(fieldName, "ItemContainerStyle") == 0)
3210if (String.CompareOrdinal(fieldName, "ItemContainerStyleSelector") == 0)
3212if (String.CompareOrdinal(fieldName, "ItemTemplate") == 0)
3214if (String.CompareOrdinal(fieldName, "ItemTemplateSelector") == 0)
3216if (String.CompareOrdinal(fieldName, "Items") == 0)
3218if (String.CompareOrdinal(fieldName, "ItemsPanel") == 0)
3220if (String.CompareOrdinal(fieldName, "ItemsSource") == 0)
3224if (String.CompareOrdinal(fieldName, "VisualTree") == 0)
3228if (String.CompareOrdinal(fieldName, "Content") == 0)
3232if (String.CompareOrdinal(fieldName, "GradientStops") == 0)
3236if (String.CompareOrdinal(fieldName, "ListItems") == 0)
3240if (String.CompareOrdinal(fieldName, "Items") == 0)
3244if (String.CompareOrdinal(fieldName, "Content") == 0)
3248if (String.CompareOrdinal(fieldName, "Blocks") == 0)
3252if (String.CompareOrdinal(fieldName, "Items") == 0)
3256if (String.CompareOrdinal(fieldName, "Content") == 0)
3260if (String.CompareOrdinal(fieldName, "Children") == 0)
3264if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3268if (String.CompareOrdinal(fieldName, "Items") == 0)
3272if (String.CompareOrdinal(fieldName, "Items") == 0)
3276if (String.CompareOrdinal(fieldName, "Items") == 0)
3280if (String.CompareOrdinal(fieldName, "Children") == 0)
3284if (String.CompareOrdinal(fieldName, "Children") == 0)
3288if (String.CompareOrdinal(fieldName, "Bindings") == 0)
3292if (String.CompareOrdinal(fieldName, "Setters") == 0)
3296if (String.CompareOrdinal(fieldName, "Setters") == 0)
3300if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3304if (String.CompareOrdinal(fieldName, "Content") == 0)
3308if (String.CompareOrdinal(fieldName, "Child") == 0)
3312if (String.CompareOrdinal(fieldName, "Content") == 0)
3316if (String.CompareOrdinal(fieldName, "Background") == 0)
3318if (String.CompareOrdinal(fieldName, "Children") == 0)
3322if (String.CompareOrdinal(fieldName, "Inlines") == 0)
3326if (String.CompareOrdinal(fieldName, "Children") == 0)
3330if (String.CompareOrdinal(fieldName, "Data") == 0)
3334if (String.CompareOrdinal(fieldName, "Segments") == 0)
3338if (String.CompareOrdinal(fieldName, "Figures") == 0)
3342if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3346if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3350if (String.CompareOrdinal(fieldName, "Child") == 0)
3352if (String.CompareOrdinal(fieldName, "IsOpen") == 0)
3354if (String.CompareOrdinal(fieldName, "Placement") == 0)
3356if (String.CompareOrdinal(fieldName, "PopupAnimation") == 0)
3360if (String.CompareOrdinal(fieldName, "Bindings") == 0)
3364if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3368if (String.CompareOrdinal(fieldName, "GradientStops") == 0)
3372if (String.CompareOrdinal(fieldName, "Content") == 0)
3376if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3380if (String.CompareOrdinal(fieldName, "Content") == 0)
3384if (String.CompareOrdinal(fieldName, "Document") == 0)
3388if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3392if (String.CompareOrdinal(fieldName, "Height") == 0)
3394if (String.CompareOrdinal(fieldName, "MaxHeight") == 0)
3396if (String.CompareOrdinal(fieldName, "MinHeight") == 0)
3400if (String.CompareOrdinal(fieldName, "Text") == 0)
3404if (String.CompareOrdinal(fieldName, "CanContentScroll") == 0)
3406if (String.CompareOrdinal(fieldName, "Content") == 0)
3408if (String.CompareOrdinal(fieldName, "HorizontalScrollBarVisibility") == 0)
3410if (String.CompareOrdinal(fieldName, "VerticalScrollBarVisibility") == 0)
3414if (String.CompareOrdinal(fieldName, "Blocks") == 0)
3418if (String.CompareOrdinal(fieldName, "Items") == 0)
3422if (String.CompareOrdinal(fieldName, "Fill") == 0)
3424if (String.CompareOrdinal(fieldName, "Stroke") == 0)
3426if (String.CompareOrdinal(fieldName, "StrokeThickness") == 0)
3430if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3434if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3438if (String.CompareOrdinal(fieldName, "Inlines") == 0)
3442if (String.CompareOrdinal(fieldName, "Children") == 0)
3446if (String.CompareOrdinal(fieldName, "Items") == 0)
3450if (String.CompareOrdinal(fieldName, "Content") == 0)
3454if (String.CompareOrdinal(fieldName, "Children") == 0)
3458if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3462if (String.CompareOrdinal(fieldName, "Setters") == 0)
3466if (String.CompareOrdinal(fieldName, "Items") == 0)
3470if (String.CompareOrdinal(fieldName, "Content") == 0)
3474if (String.CompareOrdinal(fieldName, "Children") == 0)
3478if (String.CompareOrdinal(fieldName, "RowGroups") == 0)
3482if (String.CompareOrdinal(fieldName, "Blocks") == 0)
3486if (String.CompareOrdinal(fieldName, "Cells") == 0)
3490if (String.CompareOrdinal(fieldName, "Rows") == 0)
3494if (String.CompareOrdinal(fieldName, "Background") == 0)
3496if (String.CompareOrdinal(fieldName, "FontFamily") == 0)
3498if (String.CompareOrdinal(fieldName, "FontSize") == 0)
3500if (String.CompareOrdinal(fieldName, "FontStretch") == 0)
3502if (String.CompareOrdinal(fieldName, "FontStyle") == 0)
3504if (String.CompareOrdinal(fieldName, "FontWeight") == 0)
3506if (String.CompareOrdinal(fieldName, "Foreground") == 0)
3508if (String.CompareOrdinal(fieldName, "Inlines") == 0)
3510if (String.CompareOrdinal(fieldName, "Text") == 0)
3512if (String.CompareOrdinal(fieldName, "TextDecorations") == 0)
3514if (String.CompareOrdinal(fieldName, "TextTrimming") == 0)
3516if (String.CompareOrdinal(fieldName, "TextWrapping") == 0)
3520if (String.CompareOrdinal(fieldName, "Text") == 0)
3524if (String.CompareOrdinal(fieldName, "Background") == 0)
3526if (String.CompareOrdinal(fieldName, "FontFamily") == 0)
3528if (String.CompareOrdinal(fieldName, "FontSize") == 0)
3530if (String.CompareOrdinal(fieldName, "FontStretch") == 0)
3532if (String.CompareOrdinal(fieldName, "FontStyle") == 0)
3534if (String.CompareOrdinal(fieldName, "FontWeight") == 0)
3536if (String.CompareOrdinal(fieldName, "Foreground") == 0)
3540if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3544if (String.CompareOrdinal(fieldName, "Children") == 0)
3548if (String.CompareOrdinal(fieldName, "Content") == 0)
3552if (String.CompareOrdinal(fieldName, "Items") == 0)
3556if (String.CompareOrdinal(fieldName, "Children") == 0)
3560if (String.CompareOrdinal(fieldName, "Children") == 0)
3564if (String.CompareOrdinal(fieldName, "ToolBars") == 0)
3568if (String.CompareOrdinal(fieldName, "Content") == 0)
3572if (String.CompareOrdinal(fieldName, "IsDirectionReversed") == 0)
3574if (String.CompareOrdinal(fieldName, "Maximum") == 0)
3576if (String.CompareOrdinal(fieldName, "Minimum") == 0)
3578if (String.CompareOrdinal(fieldName, "Orientation") == 0)
3580if (String.CompareOrdinal(fieldName, "Value") == 0)
3582if (String.CompareOrdinal(fieldName, "ViewportSize") == 0)
3586if (String.CompareOrdinal(fieldName, "Children") == 0)
3590if (String.CompareOrdinal(fieldName, "Children") == 0)
3594if (String.CompareOrdinal(fieldName, "Items") == 0)
3598if (String.CompareOrdinal(fieldName, "Items") == 0)
3602if (String.CompareOrdinal(fieldName, "Setters") == 0)
3606if (String.CompareOrdinal(fieldName, "ClipToBounds") == 0)
3608if (String.CompareOrdinal(fieldName, "Focusable") == 0)
3610if (String.CompareOrdinal(fieldName, "IsEnabled") == 0)
3612if (String.CompareOrdinal(fieldName, "RenderTransform") == 0)
3614if (String.CompareOrdinal(fieldName, "Visibility") == 0)
3618if (String.CompareOrdinal(fieldName, "Inlines") == 0)
3622if (String.CompareOrdinal(fieldName, "Children") == 0)
3626if (String.CompareOrdinal(fieldName, "Content") == 0)
3630if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3634if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
3638if (String.CompareOrdinal(fieldName, "Child") == 0)
3642if (String.CompareOrdinal(fieldName, "Children") == 0)
3646if (String.CompareOrdinal(fieldName, "Children") == 0)
3650if (String.CompareOrdinal(fieldName, "Children") == 0)
3654if (String.CompareOrdinal(fieldName, "Children") == 0)
3658if (String.CompareOrdinal(fieldName, "Content") == 0)
3662if (String.CompareOrdinal(fieldName, "Children") == 0)
3666if (String.CompareOrdinal(fieldName, "XmlSerializer") == 0)
3675return (String.CompareOrdinal(propName, "Width") == 0 ||
3676String.CompareOrdinal(propName, "MinWidth") == 0 ||
3677String.CompareOrdinal(propName, "MaxWidth") == 0 ||
3678String.CompareOrdinal(propName, "Height") == 0 ||
3679String.CompareOrdinal(propName, "MinHeight") == 0 ||
3680String.CompareOrdinal(propName, "MaxHeight") == 0);
3819if (String.CompareOrdinal(propName, "MinWidth") == 0)
3821else if (String.CompareOrdinal(propName, "MaxWidth") == 0)
3825if (String.CompareOrdinal(propName, "MinHeight") == 0)
3827else if (String.CompareOrdinal(propName, "MaxHeight") == 0)
3841else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
3851else if (String.CompareOrdinal(propName, "Left") == 0)
3853else if (String.CompareOrdinal(propName, "Top") == 0)
3855else if (String.CompareOrdinal(propName, "Right") == 0)
3857else if (String.CompareOrdinal(propName, "Bottom") == 0)
3863else if (String.CompareOrdinal(propName, "FontSize") == 0)
3869else if (String.CompareOrdinal(propName, "FontSize") == 0)
3875else if (String.CompareOrdinal(propName, "Top") == 0)
3877else if (String.CompareOrdinal(propName, "Left") == 0)
3879else if (String.CompareOrdinal(propName, "DialogResult") == 0)
3881else if (String.CompareOrdinal(propName, "FontSize") == 0)
3887else if (String.CompareOrdinal(propName, "Top") == 0)
3889else if (String.CompareOrdinal(propName, "Left") == 0)
3891else if (String.CompareOrdinal(propName, "DialogResult") == 0)
3893else if (String.CompareOrdinal(propName, "FontSize") == 0)
3897if (String.CompareOrdinal(propName, "Culture") == 0)
3903else if (String.CompareOrdinal(propName, "FontSize") == 0)
3909else if (String.CompareOrdinal(propName, "FontSize") == 0)
3915else if (String.CompareOrdinal(propName, "FontSize") == 0)
3921else if (String.CompareOrdinal(propName, "HorizontalOffset") == 0)
3923else if (String.CompareOrdinal(propName, "VerticalOffset") == 0)
3925else if (String.CompareOrdinal(propName, "FontSize") == 0)
3931else if (String.CompareOrdinal(propName, "FontSize") == 0)
3937else if (String.CompareOrdinal(propName, "FontSize") == 0)
3943else if (String.CompareOrdinal(propName, "FontSize") == 0)
3949else if (String.CompareOrdinal(propName, "FontSize") == 0)
3955else if (String.CompareOrdinal(propName, "FontSize") == 0)
3961else if (String.CompareOrdinal(propName, "FontSize") == 0)
3963else if (String.CompareOrdinal(propName, "LineHeight") == 0)
3981else if (String.CompareOrdinal(propName, "FontSize") == 0)
3987else if (String.CompareOrdinal(propName, "FontSize") == 0)
3993else if (String.CompareOrdinal(propName, "IsChecked") == 0)
3995else if (String.CompareOrdinal(propName, "FontSize") == 0)
4001else if (String.CompareOrdinal(propName, "IsChecked") == 0)
4003else if (String.CompareOrdinal(propName, "FontSize") == 0)
4009else if (String.CompareOrdinal(propName, "IsSynchronizedWithCurrentItem") == 0)
4011else if (String.CompareOrdinal(propName, "FontSize") == 0)
4017else if (String.CompareOrdinal(propName, "MaxDropDownHeight") == 0)
4019else if (String.CompareOrdinal(propName, "IsSynchronizedWithCurrentItem") == 0)
4021else if (String.CompareOrdinal(propName, "FontSize") == 0)
4027else if (String.CompareOrdinal(propName, "FontSize") == 0)
4033else if (String.CompareOrdinal(propName, "FontSize") == 0)
4041if (String.CompareOrdinal(propName, "HorizontalOffset") == 0)
4043else if (String.CompareOrdinal(propName, "VerticalOffset") == 0)
4053else if (String.CompareOrdinal(propName, "FontSize") == 0)
4059else if (String.CompareOrdinal(propName, "FontSize") == 0)
4065else if (String.CompareOrdinal(propName, "FontSize") == 0)
4071else if (String.CompareOrdinal(propName, "FontSize") == 0)
4077else if (String.CompareOrdinal(propName, "FontSize") == 0)
4085if (String.CompareOrdinal(propName, "Width") == 0)
4091else if (String.CompareOrdinal(propName, "FontSize") == 0)
4109else if (String.CompareOrdinal(propName, "FontSize") == 0)
4115else if (String.CompareOrdinal(propName, "FontSize") == 0)
4121else if (String.CompareOrdinal(propName, "FontSize") == 0)
4127else if (String.CompareOrdinal(propName, "FontSize") == 0)
4137else if (String.CompareOrdinal(propName, "Top") == 0)
4139else if (String.CompareOrdinal(propName, "Bottom") == 0)
4141else if (String.CompareOrdinal(propName, "Left") == 0)
4143else if (String.CompareOrdinal(propName, "Right") == 0)
4151if (String.CompareOrdinal(propName, "Culture") == 0)
4161else if (String.CompareOrdinal(propName, "FontSize") == 0)
4167else if (String.CompareOrdinal(propName, "IsSynchronizedWithCurrentItem") == 0)
4169else if (String.CompareOrdinal(propName, "FontSize") == 0)
4175else if (String.CompareOrdinal(propName, "IsSynchronizedWithCurrentItem") == 0)
4177else if (String.CompareOrdinal(propName, "FontSize") == 0)
4183else if (String.CompareOrdinal(propName, "FontSize") == 0)
4193else if (String.CompareOrdinal(propName, "FontSize") == 0)
4199else if (String.CompareOrdinal(propName, "FontSize") == 0)
4205else if (String.CompareOrdinal(propName, "FontSize") == 0)
4219else if (String.CompareOrdinal(propName, "HorizontalOffset") == 0)
4221else if (String.CompareOrdinal(propName, "VerticalOffset") == 0)
4227else if (String.CompareOrdinal(propName, "FontSize") == 0)
4233else if (String.CompareOrdinal(propName, "FontSize") == 0)
4239else if (String.CompareOrdinal(propName, "FontSize") == 0)
4245else if (String.CompareOrdinal(propName, "FontSize") == 0)
4255else if (String.CompareOrdinal(propName, "FontSize") == 0)
4261else if (String.CompareOrdinal(propName, "FontSize") == 0)
4271else if (String.CompareOrdinal(propName, "FontSize") == 0)
4301else if (String.CompareOrdinal(propName, "FontSize") == 0)
4307else if (String.CompareOrdinal(propName, "IsChecked") == 0)
4309else if (String.CompareOrdinal(propName, "FontSize") == 0)
4315else if (String.CompareOrdinal(propName, "FontSize") == 0)
4321else if (String.CompareOrdinal(propName, "FontSize") == 0)
4327else if (String.CompareOrdinal(propName, "FontSize") == 0)
4333else if (String.CompareOrdinal(propName, "FontSize") == 0)
4339else if (String.CompareOrdinal(propName, "IsSynchronizedWithCurrentItem") == 0)
4341else if (String.CompareOrdinal(propName, "FontSize") == 0)
4347else if (String.CompareOrdinal(propName, "FontSize") == 0)
4353else if (String.CompareOrdinal(propName, "FontSize") == 0)
4355else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4361else if (String.CompareOrdinal(propName, "FontSize") == 0)
4367else if (String.CompareOrdinal(propName, "FontSize") == 0)
4377else if (String.CompareOrdinal(propName, "HorizontalOffset") == 0)
4379else if (String.CompareOrdinal(propName, "VerticalOffset") == 0)
4381else if (String.CompareOrdinal(propName, "FontSize") == 0)
4385if (String.CompareOrdinal(propName, "HorizontalOffset") == 0)
4387else if (String.CompareOrdinal(propName, "VerticalOffset") == 0)
4393else if (String.CompareOrdinal(propName, "FontSize") == 0)
4399else if (String.CompareOrdinal(propName, "FontSize") == 0)
4405else if (String.CompareOrdinal(propName, "FontSize") == 0)
4427else if (String.CompareOrdinal(propName, "ItemWidth") == 0)
4429else if (String.CompareOrdinal(propName, "ItemHeight") == 0)
4433if (String.CompareOrdinal(propName, "ConverterCulture") == 0)
4437if (String.CompareOrdinal(propName, "Culture") == 0)
4441if (String.CompareOrdinal(propName, "Culture") == 0)
4445if (String.CompareOrdinal(propName, "Culture") == 0)
4449if (String.CompareOrdinal(propName, "ConverterCulture") == 0)
4461if (String.CompareOrdinal(propName, "FontSize") == 0)
4465if (String.CompareOrdinal(propName, "FontSize") == 0)
4469if (String.CompareOrdinal(propName, "LineHeight") == 0)
4471else if (String.CompareOrdinal(propName, "FontSize") == 0)
4475if (String.CompareOrdinal(propName, "LineHeight") == 0)
4477else if (String.CompareOrdinal(propName, "FontSize") == 0)
4481if (String.CompareOrdinal(propName, "LineHeight") == 0)
4483else if (String.CompareOrdinal(propName, "FontSize") == 0)
4487if (String.CompareOrdinal(propName, "FontSize") == 0)
4491if (String.CompareOrdinal(propName, "FontSize") == 0)
4499if (String.CompareOrdinal(propName, "HorizontalOffset") == 0)
4501else if (String.CompareOrdinal(propName, "VerticalOffset") == 0)
4503else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4505else if (String.CompareOrdinal(propName, "FontSize") == 0)
4511else if (String.CompareOrdinal(propName, "Left") == 0)
4513else if (String.CompareOrdinal(propName, "Top") == 0)
4515else if (String.CompareOrdinal(propName, "Right") == 0)
4517else if (String.CompareOrdinal(propName, "Bottom") == 0)
4521if (String.CompareOrdinal(propName, "Width") == 0)
4523else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4525else if (String.CompareOrdinal(propName, "FontSize") == 0)
4529if (String.CompareOrdinal(propName, "FontSize") == 0)
4531else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4533else if (String.CompareOrdinal(propName, "ColumnWidth") == 0)
4535else if (String.CompareOrdinal(propName, "ColumnGap") == 0)
4537else if (String.CompareOrdinal(propName, "ColumnRuleWidth") == 0)
4539else if (String.CompareOrdinal(propName, "PageWidth") == 0)
4541else if (String.CompareOrdinal(propName, "MinPageWidth") == 0)
4543else if (String.CompareOrdinal(propName, "MaxPageWidth") == 0)
4545else if (String.CompareOrdinal(propName, "PageHeight") == 0)
4547else if (String.CompareOrdinal(propName, "MinPageHeight") == 0)
4549else if (String.CompareOrdinal(propName, "MaxPageHeight") == 0)
4555else if (String.CompareOrdinal(propName, "FontRenderingEmSize") == 0)
4557else if (String.CompareOrdinal(propName, "OriginX") == 0)
4559else if (String.CompareOrdinal(propName, "OriginY") == 0)
4563if (String.CompareOrdinal(propName, "FontSize") == 0)
4567if (String.CompareOrdinal(propName, "FontSize") == 0)
4571if (String.CompareOrdinal(propName, "FontSize") == 0)
4575if (String.CompareOrdinal(propName, "FontSize") == 0)
4579if (String.CompareOrdinal(propName, "MarkerOffset") == 0)
4581else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4583else if (String.CompareOrdinal(propName, "FontSize") == 0)
4587if (String.CompareOrdinal(propName, "LineHeight") == 0)
4589else if (String.CompareOrdinal(propName, "FontSize") == 0)
4597if (String.CompareOrdinal(propName, "TextIndent") == 0)
4599else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4601else if (String.CompareOrdinal(propName, "FontSize") == 0)
4605if (String.CompareOrdinal(propName, "FontSize") == 0)
4609if (String.CompareOrdinal(propName, "LineHeight") == 0)
4611else if (String.CompareOrdinal(propName, "FontSize") == 0)
4615if (String.CompareOrdinal(propName, "CellSpacing") == 0)
4617else if (String.CompareOrdinal(propName, "LineHeight") == 0)
4619else if (String.CompareOrdinal(propName, "FontSize") == 0)
4623if (String.CompareOrdinal(propName, "LineHeight") == 0)
4625else if (String.CompareOrdinal(propName, "FontSize") == 0)
4629if (String.CompareOrdinal(propName, "FontSize") == 0)
4633if (String.CompareOrdinal(propName, "FontSize") == 0)
4637if (String.CompareOrdinal(propName, "FontSize") == 0)
4643else if (String.CompareOrdinal(propName, "FontSize") == 0)
4649else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
4655else if (String.CompareOrdinal(propName, "X1") == 0)
4657else if (String.CompareOrdinal(propName, "Y1") == 0)
4659else if (String.CompareOrdinal(propName, "X2") == 0)
4661else if (String.CompareOrdinal(propName, "Y2") == 0)
4663else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
4669else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
4675else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
4681else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
4687else if (String.CompareOrdinal(propName, "RadiusX") == 0)
4689else if (String.CompareOrdinal(propName, "RadiusY") == 0)
4691else if (String.CompareOrdinal(propName, "StrokeThickness") == 0)
4695if (String.CompareOrdinal(propName, "Command") == 0)
4699if (String.CompareOrdinal(propName, "Gesture") == 0)
4701else if (String.CompareOrdinal(propName, "Command") == 0)
4705if (String.CompareOrdinal(propName, "Gesture") == 0)
4707else if (String.CompareOrdinal(propName, "Command") == 0)
4711if (String.CompareOrdinal(propName, "CurrentInputLanguage") == 0)
4713else if (String.CompareOrdinal(propName, "InputLanguage") == 0)
4717if (String.CompareOrdinal(propName, "CaretStops") == 0)
4719else if (String.CompareOrdinal(propName, "ClusterMap") == 0)
4721else if (String.CompareOrdinal(propName, "Characters") == 0)
4723else if (String.CompareOrdinal(propName, "GlyphIndices") == 0)
4725else if (String.CompareOrdinal(propName, "AdvanceWidths") == 0)
4727else if (String.CompareOrdinal(propName, "GlyphOffsets") == 0)
4731if (String.CompareOrdinal(propName, "CultureOverride") == 0)
6156case KnownElements.String: t = typeof(System.String); break;
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (16)
186String fullName = clrNamespace + "#" + upperAssemblyName;
397ReflectionHelper.LoadAssembly(entry.Key as String, entry.Value as String);
1492String.Format(CultureInfo.CurrentCulture, "{0}.{1}", objectType.Name, localName),
2300string fullTypeName = String.Format(TypeConverterHelper.InvariantEnglishUS, "{0}.{1}", usd.ClrNamespace, typeName);
2320string fullTypeName = String.Format(TypeConverterHelper.InvariantEnglishUS, "{0}.{1}", namespaces[i].ClrNamespace, typeName);
2342string prefix = String.Empty;
2502String hashString = xmlNamespace + ":" + localName;
2542String hashString = xmlNamespace + ":" + localName;
3362if (String.IsNullOrEmpty(xmlNamespace))
3382!String.IsNullOrEmpty(newXmlNamespace);
3505(!(String.IsNullOrEmpty(mapping.AssemblyName)) && !(String.IsNullOrEmpty(mapping.ClrNamespace))) )
3526if (!String.IsNullOrEmpty(mapping.ClrNamespace))
3603String fullName = clrNamespaceFullName + "#" + upperAssemblyName;
3605String ret;
src\Framework\System\Windows\MessageBox.cs (2)
200return ShowCore(IntPtr.Zero, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0);
420return ShowCore((new WindowInteropHelper (owner)).CriticalHandle, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0);
src\Framework\System\Windows\Window.cs (6)
845DependencyProperty.Register("Title", typeof(String), typeof(Window),
846new FrameworkPropertyMetadata(String.Empty,
862return (String)GetValue(TitleProperty);
4034Debug.Assert(workAreaWidthDeviceUnits >= 0, String.Format(CultureInfo.InvariantCulture, "workAreaWidth ({0})for monitor ({1}) is negative", hMonitor, workAreaWidthDeviceUnits));
4035Debug.Assert(workAreaHeightDeviceUnits >= 0, String.Format(CultureInfo.InvariantCulture, "workAreaHeight ({0}) for monitor ({1}) is negative", hMonitor, workAreaHeightDeviceUnits));
6242Debug.Assert(false, String.Format("specifiedRestoreBounds can't be {0}", specifiedRestoreBounds));
compmod\system\codedom\compiler\CodeValidator.cs (8)
254if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) {
535String baseType = e.BaseType;
570private static void ValidateTypeName(Object e, String propertyName, String typeName) {
572String message = SR.GetString(SR.InvalidTypeName, typeName, propertyName, e.GetType().FullName);
577private static void ValidateIdentifier(Object e, String propertyName, String identifier) {
579String message = SR.GetString(SR.InvalidLanguageIdentifier, identifier, propertyName, e.GetType().FullName);
compmod\system\diagnostics\DelimitedListTraceListener.cs (8)
78return new String[]{"delimiter"};
82public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id, string format, params object[] args) {
89WriteEscaped(String.Format(CultureInfo.InvariantCulture, format, args));
100public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id, string message) {
115public override void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, object data) {
130public override void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, params object[] data) {
151private void WriteHeader(String source, TraceEventType eventType, int id) {
198if (!String.IsNullOrEmpty(message)) {
compmod\system\diagnostics\TraceListener.cs (12)
322 public virtual void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, object data) {
327string datastring = String.Empty;
338 public virtual void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, params object[] data) {
362 public virtual void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id) {
363 TraceEvent(eventCache, source, eventType, id, String.Empty);
370public virtual void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id, string message) {
383public virtual void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id, string format, params object[] args) {
389WriteLine(String.Format(CultureInfo.InvariantCulture, format, args));
399public virtual void TraceTransfer(TraceEventCache eventCache, String source, int id, string message, Guid relatedActivityId) {
403private void WriteHeader(String source, TraceEventType eventType, int id) {
404Write(String.Format(CultureInfo.InvariantCulture, "{0} {1}: {2} : ", source, eventType.ToString(), id.ToString(CultureInfo.InvariantCulture)));
429WriteLine(String.Empty);
compmod\system\diagnostics\XmlWriterTraceListener.cs (9)
62public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id, string format, params object[] args) {
70message = String.Format(CultureInfo.InvariantCulture, format, args);
79public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, int id, string message) {
88public override void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, object data) {
105public override void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, params object[] data) {
158public override void TraceTransfer(TraceEventCache eventCache, String source, int id, string message, Guid relatedActivityId) {
167private void WriteHeader(String source, TraceEventType eventType, int id, TraceEventCache eventCache, Guid relatedActivityId) {
174private void WriteHeader(String source, TraceEventType eventType, int id, TraceEventCache eventCache) {
179private void WriteStartHeader(String source, TraceEventType eventType, int id, TraceEventCache eventCache) {
net\System\Net\_SSPIWrapper.cs (6)
134if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireDefaultCredential()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
174if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
192if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
218if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
484Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, op, String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
977return "Capabilities:" + String.Format(CultureInfo.InvariantCulture, "0x{0:x}", Capabilities)
net\System\Net\Internal.cs (14)
738if (String.Compare(installType, InstallTypeStringClient, StringComparison.OrdinalIgnoreCase) == 0)
742if (String.Compare(installType, InstallTypeStringServer, StringComparison.OrdinalIgnoreCase) == 0)
746if (String.Compare(installType, InstallTypeStringServerCore, StringComparison.OrdinalIgnoreCase) == 0)
750if (String.Compare(installType, InstallTypeStringEmbedded, StringComparison.OrdinalIgnoreCase) == 0)
1429GlobalLog.Print(" certContextArray = " + String.Format("0x{0:x}", certContextArray));
1430GlobalLog.Print(" rootStore = " + String.Format("0x{0:x}", rootStore));
1432GlobalLog.Print(" phMappers = " + String.Format("0x{0:x}", phMappers));
1434GlobalLog.Print(" palgSupportedAlgs = " + String.Format("0x{0:x}", palgSupportedAlgs));
1435GlobalLog.Print(" grbitEnabledProtocols = " + String.Format("0x{0:x}", grbitEnabledProtocols));
1438GlobalLog.Print(" dwSessionLifespan = " + String.Format("0x{0:x}", dwSessionLifespan));
1439GlobalLog.Print(" dwFlags = " + String.Format("0x{0:x}", dwFlags));
1440GlobalLog.Print(" reserved = " + String.Format("0x{0:x}", reserved));
1975internal static DateTime string2date(String S) {
2012GlobalLog.Enter("PolicyWrapper::VerifyChainPolicy", "chainContext="+ chainContext + ", options="+String.Format("0x{0:x}", cpp.dwFlags));
net\System\Net\mail\MailAddress.cs (12)
70if (address == String.Empty){
78if (!String.IsNullOrEmpty(this.displayName)) {
95if (String.IsNullOrEmpty(this.displayName)) {
159return String.Format(CultureInfo.InvariantCulture, "{0}@{1}", userName, host);
165return String.Format(CultureInfo.InvariantCulture, "{0}@{1}",
171return String.Format(CultureInfo.InvariantCulture, "<{0}>", Address);
177return String.Format(CultureInfo.InvariantCulture, "<{0}>", GetAddress(allowUnicode));
188if (String.IsNullOrEmpty(DisplayName)) {
192return String.Format("\"{0}\" {1}", DisplayName, SmtpAddress);
212string encodedAddress = String.Empty;
219if (!String.IsNullOrEmpty(this.displayName))
227encodedAddress = String.Format(CultureInfo.InvariantCulture, "\"{0}\"", this.displayName);
net\System\Net\mail\smtpconnection.cs (8)
249if (String.Compare(extension, 0, authExtension, 0,
257if (String.Compare(authType, authLogin, StringComparison.OrdinalIgnoreCase) == 0) {
261else if (String.Compare(authType, authNtlm, StringComparison.OrdinalIgnoreCase) == 0) {
264else if (String.Compare(authType, authGssapi, StringComparison.OrdinalIgnoreCase) == 0) {
267else if (String.Compare(authType, authWDigest, StringComparison.OrdinalIgnoreCase) == 0) {
273else if (String.Compare(extension, 0, "dsn ", 0, 3, StringComparison.OrdinalIgnoreCase) == 0) {
276else if (String.Compare(extension, 0, "STARTTLS", 0, 8, StringComparison.OrdinalIgnoreCase) == 0) {
279else if (String.Compare(extension, 0, "SMTPUTF8", 0, 8, StringComparison.OrdinalIgnoreCase) == 0) {
net\System\Net\SocketPermission.cs (11)
235public SocketPermission(NetworkAccess access, TransportType transport, String hostName, int portNumber) {
485String str = securityElement.Attribute("Unrestricted");
711internal String hostname;
719private const String encSeperator = "#";
726public String Hostname { get {return hostname;}}
748internal EndpointPermission(String epname, int port, TransportType trtype) {
770if (String.Compare(hostname, ep.hostname, StringComparison.OrdinalIgnoreCase ) != 0) {
872return (String.Compare(hostname, e.hostname, StringComparison.OrdinalIgnoreCase ) == 0);
1005public override String ToString() {
1011String commonName=null;
1074if(String.Compare(hostname, E.hostname, StringComparison.OrdinalIgnoreCase ) != 0) {
net\System\Net\WebPermission.cs (8)
355public WebPermission(NetworkAccess access, String uriString) {
372public void AddPermission(NetworkAccess access, String uriString) {
623private static bool isSpecialSubsetCase(String regexToCheck, ArrayList permList) {
630if (String.Compare(regexToCheck, regex.ToString(), StringComparison.OrdinalIgnoreCase ) == 0)
635if (String.Compare(regexToCheck, Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)), StringComparison.OrdinalIgnoreCase ) == 0)
638else if (String.Compare(regexToCheck, Regex.Escape(uriPattern.ToString()), StringComparison.OrdinalIgnoreCase ) == 0) {
812String str = securityElement.Attribute("Unrestricted");
904String tempStr=null;
regex\system\text\regularexpressions\Regex.cs (104)
97private const String DefaultMatchTimeout_ConfigKeyName = "REGEX_DEFAULT_MATCH_TIMEOUT";
177protected internal String[] capslist; // if captures are sparse or named captures are used, this is the sorted list of names
208public Regex(String pattern)
223public Regex(String pattern, RegexOptions options)
232Regex(String pattern, RegexOptions options, TimeSpan matchTimeout)
236private Regex(String pattern, RegexOptions options, TimeSpan matchTimeout, bool useCache) {
268String key = ((int) options).ToString(NumberFormatInfo.InvariantInfo) + ":" + cultureKey + ":" + pattern;
465public static String Escape(String str) {
481public static String Unescape(String str) {
565public String[] GetGroupNames() {
566String[] result;
570result = new String[max];
577result = new String[capslist.Length];
630public String GroupNameFromNumber(int i) {
635return String.Empty;
645return String.Empty;
657return String.Empty;
673public int GroupNumberFromName(String name) {
725public static bool IsMatch(String input, String pattern) {
739public static bool IsMatch(String input, String pattern, RegexOptions options) {
748static bool IsMatch(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) {
762public bool IsMatch(String input) {
781public bool IsMatch(String input, int startat) {
798public static Match Match(String input, String pattern) {
812public static Match Match(String input, String pattern, RegexOptions options) {
822static Match Match(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) {
836public Match Match(String input) {
851public Match Match(String input, int startat) {
870public Match Match(String input, int beginning, int length) {
886public static MatchCollection Matches(String input, String pattern) {
899public static MatchCollection Matches(String input, String pattern, RegexOptions options) {
908static MatchCollection Matches(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) {
923public MatchCollection Matches(String input) {
941public MatchCollection Matches(String input, int startat) {
959public static String Replace(String input, String pattern, String replacement) {
973public static String Replace(String input, String pattern, String replacement, RegexOptions options) {
982static String Replace(String input, String pattern, String replacement, RegexOptions options, TimeSpan matchTimeout) {
996public String Replace(String input, String replacement) {
1013public String Replace(String input, String replacement, int count) {
1031public String Replace(String input, String replacement, int count, int startat) {
1060public static String Replace(String input, String pattern, MatchEvaluator evaluator) {
1073public static String Replace(String input, String pattern, MatchEvaluator evaluator, RegexOptions options) {
1082static String Replace(String input, String pattern, MatchEvaluator evaluator, RegexOptions options, TimeSpan matchTimeout) {
1096public String Replace(String input, MatchEvaluator evaluator) {
1114public String Replace(String input, MatchEvaluator evaluator, int count) {
1132public String Replace(String input, MatchEvaluator evaluator, int count, int startat) {
1149public static String[] Split(String input, String pattern) {
1161public static String[] Split(String input, String pattern, RegexOptions options) {
1170static String[] Split(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) {
1184public String[] Split(String input) {
1201public String[] Split(String input, int count) {
1218public String[] Split(String input, int count, int startat) {
1253public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, String resourceFile) {
1259private static void CompileToAssemblyInternal (RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, String resourceFile) {
1286internal Match Run(bool quick, int prevlen, String input, int beginning, int length, int startat) {
1329private static CachedCodeEntry LookupCachedAndUpdate(String key) {
1347private CachedCodeEntry CacheCode(String key) {
1424public delegate String MatchEvaluator(Match match);
1440internal String[] _capslist;
1449internal CachedCodeEntry(string key, Hashtable capnames, String[] capslist, RegexCode code, Hashtable caps, int capsize, ExclusiveReference runner, SharedReference repl)
regex\system\text\regularexpressions\RegexBoyerMoore.cs (6)
27internal String _pattern;
40internal RegexBoyerMoore(String pattern, bool caseInsensitive, bool rightToLeft, CultureInfo culture) {
246return(0 == String.CompareOrdinal(_pattern, 0, text, index, _pattern.Length));
253internal bool IsMatch(String text, int index, int beglimit, int endlimit) {
278internal int Scan(String text, int index, int beglimit, int endlimit) {
368public override String ToString() {
regex\system\text\regularexpressions\RegexCharClass.cs (47)
59private static readonly String InternalRegexIgnoreCase = "__InternalRegexIgnoreCase__";
60private static readonly String Space = "\x64";
61private static readonly String NotSpace = NegateCategory(Space);
62private static readonly String Word;
63private static readonly String NotWord;
65internal static readonly String SpaceClass;
66internal static readonly String NotSpaceClass;
67internal static readonly String WordClass;
68internal static readonly String NotWordClass;
69internal static readonly String DigitClass;
70internal static readonly String NotDigitClass;
72private const String ECMASpaceSet = "\u0009\u000E\u0020\u0021";
73private const String NotECMASpaceSet = "\0\u0009\u000E\u0020\u0021";
74private const String ECMAWordSet = "\u0030\u003A\u0041\u005B\u005F\u0060\u0061\u007B\u0130\u0131";
75private const String NotECMAWordSet = "\0\u0030\u003A\u0041\u005B\u005F\u0060\u0061\u007B\u0130\u0131";
76private const String ECMADigitSet = "\u0030\u003A";
77private const String NotECMADigitSet = "\0\u0030\u003A";
79internal const String ECMASpaceClass = "\x00\x04\x00" + ECMASpaceSet;
80internal const String NotECMASpaceClass = "\x01\x04\x00" + ECMASpaceSet;
81internal const String ECMAWordClass = "\x00\x0A\x00" + ECMAWordSet;
82internal const String NotECMAWordClass = "\x01\x0A\x00" + ECMAWordSet;
83internal const String ECMADigitClass = "\x00\x02\x00" + ECMADigitSet;
84internal const String NotECMADigitClass = "\x01\x02\x00" + ECMADigitSet;
86internal const String AnyClass = "\x00\x01\x00\x00";
87internal const String EmptyClass = "\x00\x00\x00";
89static Dictionary<String, String> _definedCategories;
99private static readonly String[,] _propTable = {
361Dictionary<String, String> tempCategories = new Dictionary<String, String>(32);
408tempCategories[InternalRegexIgnoreCase] = String.Format(CultureInfo.InvariantCulture, "{0}{1}{2}{3}{4}", GroupChar, groups[1], groups[4], groups[5], groups[6]);
566private void AddSet(String set) {
602String cat;
767internal static char SingletonChar(String set) {
776internal static bool IsEmpty(String charClass) {
788internal static bool IsSingleton(String set) {
796internal static bool IsSingletonInverse(String set) {
829internal static bool CharInClass(char ch, String set) {
834internal static bool CharInClassRecursive(char ch, String set, int start) {
1048internal String ToStringClass() {
1145private static String SetFromProperty(String capname, bool invert, string pattern) {
1150int res = String.Compare(capname, _propTable[mid,0], StringComparison.Ordinal);
1156String set = _propTable[mid,1];
1157Debug.Assert(!String.IsNullOrEmpty(set), "Found a null/empty element in RegexCharClass prop table");
regex\system\text\regularexpressions\RegexCompiler.cs (21)
95internal String[] _strings; // the stringtable associated with the RegexCodes
166_getcharM = typeof(String).GetMethod("get_Chars", new Type[] {typeof(int)});
180private static FieldInfo RegexRunnerField(String fieldname) {
184private static MethodInfo RegexRunnerMethod(String methname) {
215internal static void CompileToAssembly(RegexCompilationInfo[] regexes, AssemblyName an, CustomAttributeBuilder[] attribs, String resourceFile) {
222String pattern = regexes[i].Pattern;
224String fullname;
2481String str;
2526String str;
3078internal RegexTypeCompiler(AssemblyName an, CustomAttributeBuilder[] attribs, String resourceFile) {
3123internal Type FactoryTypeFromCode(RegexCode code, RegexOptions options, String typeprefix) {
3124String runnertypename;
3125String runnerfactoryname;
3186internal void GenerateRegexType(String pattern, RegexOptions opts, String name, bool ispublic, RegexCode code, RegexTree tree, Type factory, TimeSpan matchTimeout) {
3252_ilg.Emit(OpCodes.Newarr, typeof(String)); // create new string array
3335Ldstr((String) en.Key);
3345private FieldInfo RegexField(String fieldname) {
3368internal void DefineType(String typename, bool ispublic, Type inheritfromclass) {
3379internal void DefineMethod(String methname, Type returntype) {
3444internal DynamicMethod DefineDynamicMethod(String methname, Type returntype, Type hostType) {
regex\system\text\regularexpressions\RegexMatch.cs (9)
48internal static Match _empty = new Match(null, 1, String.Empty, 0, 0, 0);
78internal Match(Regex regex, int capcount, String text, int begpos, int len, int startpos)
101internal virtual void Reset(Regex regex, String text, int textbeg, int textend, int textstart) {
153public virtual String Result(String replacement) {
175internal virtual String GroupToStringImpl(int groupnum) {
178return String.Empty;
188internal String LastGroupToStringImpl() {
430String text, int begpos, int len, int startpos)
regex\system\text\regularexpressions\RegexReplacement.cs (23)
25internal RegexReplacement(String rep, RegexNode concat, Hashtable _caps) {
28List<String> strings;
38strings = new List<String>();
78internal String _rep;
79internal List<String> _strings; // table of string constants
124private void ReplacementImplRTL(List<String> al, Match match) {
153internal String Pattern {
162internal String Replacement(Match match) {
185internal String Replace(Regex regex, String input, int count, int startat) {
223List<String> al = new List<String>();
261internal static String Replace(MatchEvaluator evaluator, Regex regex,
262String input, int count, int startat) {
305List<String> al = new List<String>();
340internal static String[] Split(Regex regex, String input, int count, int startat) {
342String[] result;
351result = new String[1];
361result = new String[1];
366List<String> al = new List<String>();
regex\system\text\regularexpressions\RegexRunner.cs (6)
49protected internal String runtext; // text to search
110protected internal Match Scan(Regex regex, String text, int textbeg, int textend, int textstart, int prevlen, bool quick) {
119Match Scan(Regex regex, String text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout) {
383protected static bool CharInSet(char ch, String set, String category) {
388protected static bool CharInClass(char ch, String charClass) {
security\system\security\cryptography\x509\x509certificate2collection.cs (7)
562if (String.Compare(KeyUsages[index].pwszKeyUsage, (string) findValue, StringComparison.OrdinalIgnoreCase) == 0) {
713if (String.Compare(rdn, (string) pvCallbackData, StringComparison.OrdinalIgnoreCase) != 0)
727if (String.Compare(rdn, (string) pvCallbackData, StringComparison.OrdinalIgnoreCase) != 0)
853if (String.Compare(s, (string) pvCallbackData, StringComparison.OrdinalIgnoreCase) == 0)
876if (String.Compare(pTemplate.pszObjId, oidValue, StringComparison.OrdinalIgnoreCase) == 0)
914if (String.Compare(eku, oidValue, StringComparison.OrdinalIgnoreCase) == 0)
958if (String.Compare(certPolicy, pPolicyInfo.pszPolicyIdentifier, StringComparison.OrdinalIgnoreCase) == 0)
security\system\security\permissions\storepermission.cs (6)
67throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
82throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
99throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
128if (unrestricted != null && String.Compare(unrestricted, "true", StringComparison.OrdinalIgnoreCase) == 0) {
134String strFlags = securityElement.Attribute("Flags");
144throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Arg_EnumIllegalVal), (int)flags));
security\system\security\permissions\typedescriptorpermission.cs (7)
123throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
141throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
161throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
173throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Arg_EnumIllegalVal), (int)type));
200if (unrestricted != null && String.Compare(unrestricted, "true", StringComparison.OrdinalIgnoreCase) == 0)
207String strFlags = securityElement.Attribute("Flags");
219throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Arg_EnumIllegalVal), (int)flags));
services\monitoring\system\diagnosticts\EventLogTraceListener.cs (4)
145else if(String.IsNullOrEmpty(format)) {
154eventLog.WriteEvent(data, String.Format(CultureInfo.InvariantCulture, format,args));
174public override void TraceData(TraceEventCache eventCache, String source, TraceEventType severity, int id, object data) {
185public override void TraceData(TraceEventCache eventCache, String source, TraceEventType severity, int id, params object[] data) {
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (15)
344counterName = String.Empty;
346if (String.Compare(counterName, counter, StringComparison.OrdinalIgnoreCase) == 0)
407if (categoryHelp == null || categoryHelp == String.Empty)
432Debug.Assert(!String.IsNullOrEmpty(counterData.CounterHelp), "CounterHelp should have been fixed up by the caller");
627if (machineName == "." || String.Compare(this.machineName, ComputerName, StringComparison.OrdinalIgnoreCase) == 0) {
651&& (String.Compare((string)systemDllName, PerformanceCounterLib.PerfShimName, StringComparison.OrdinalIgnoreCase) == 0
810if (counterName != null && counterName != String.Empty) {
868counterName = String.Empty;
870if (String.Compare(counterName, counter, StringComparison.OrdinalIgnoreCase) == 0) {
881return String.Empty;
963if (String.Compare(this.machineName, ComputerName, StringComparison.OrdinalIgnoreCase) == 0)
1021nameString = String.Empty;
1191if (machineName != "." && String.Compare(machineName, PerformanceCounterLib.ComputerName, StringComparison.OrdinalIgnoreCase) != 0) {
1483if (String.Compare(counterName, counter, StringComparison.OrdinalIgnoreCase) == 0) {
1512if (name != null && name != String.Empty) {
sys\system\configuration\ClientSettingsStore.cs (8)
268String.Equals(filename, ConfigurationManagerInternalFactory.Instance.MachineConfigPath, StringComparison.OrdinalIgnoreCase) ||
269String.Equals(filename, ConfigurationManagerInternalFactory.Instance.ApplicationConfigUri, StringComparison.OrdinalIgnoreCase) ||
270String.Equals(filename, ConfigurationManagerInternalFactory.Instance.ExeLocalConfigPath, StringComparison.OrdinalIgnoreCase) ||
271String.Equals(filename, ConfigurationManagerInternalFactory.Instance.ExeRoamingConfigPath, StringComparison.OrdinalIgnoreCase);
299if (String.Equals(streamName, ConfigurationManagerInternalFactory.Instance.ExeLocalConfigPath, StringComparison.OrdinalIgnoreCase)) {
304else if (String.Equals(streamName, ConfigurationManagerInternalFactory.Instance.ExeRoamingConfigPath, StringComparison.OrdinalIgnoreCase)) {
321if (String.Equals(streamName, ConfigurationManagerInternalFactory.Instance.ExeLocalConfigPath, StringComparison.OrdinalIgnoreCase) ||
322String.Equals(streamName, ConfigurationManagerInternalFactory.Instance.ExeRoamingConfigPath, StringComparison.OrdinalIgnoreCase)) {
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (1)
301return String.Empty;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
41typeof(String),
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
122typeof(String),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
124return String.Empty;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (1)
301return String.Empty;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
41typeof(String),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
122typeof(String),
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (13)
393String.Format((IFormatProvider)null, "SmiMetaData.ctor: Udt name={0}, maxLength={1}", udtAssemblyQualifiedName, maxLength));
572Debug.Assert(String.Empty == __typeNameByDatabaseType[(int)_databaseType], "unexpected udt?");
728String.Empty, // SqlDbType.Udt -- get type name from Type.FullName instead.
729String.Empty, // Structured types have user-defined type names.
757string fields = String.Empty;
760fields = String.Format(CultureInfo.InvariantCulture,
765string properties = String.Empty;
768properties = String.Format(CultureInfo.InvariantCulture,
773return String.Format(CultureInfo.InvariantCulture, "\n\t"
966return String.Format(CultureInfo.InvariantCulture,
1138return String.Format(CultureInfo.InvariantCulture, "{0}"
1416return String.Format(CultureInfo.InvariantCulture, "{0}"
1697return String.Format(CultureInfo.InvariantCulture, "{0}"
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (9)
176String value = ( (String) GetValue( sink, getters, ordinal, metaData, null ) );
637String temp = GetString_Unchecked( sink, getters, ordinal );
683internal static String GetString( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
692return (String) obj;
1551internal static void SetString( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, String value ) {
3188private static String GetString_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
3195String result = getters.GetString( sink, ordinal );
3627private static void SetString_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, String value, int offset, int length ) {
fx\src\data\System\Data\CodeGen\datacache.cs (21)
213if (String.Compare("column", columnName, StringComparison.OrdinalIgnoreCase) != 0)
1061VariableDecl(typeof(String), "strSchema",
1454private static CodeExpression MethodCall(CodeExpression targetObject, String methodName, CodeExpression[] parameters) {
1458private static CodeExpression MethodCall(CodeExpression targetObject, String methodName) {
1462private static CodeExpression MethodCall(CodeExpression targetObject, String methodName, CodeExpression par) {
1502private static CodeMemberField FieldDecl(String type, String name) {return new CodeMemberField(type, name);}
1503private static CodeMemberField FieldDecl(Type type, String name) {return new CodeMemberField(type, name);}
1504private static CodeMemberMethod Method(CodeTypeReference type, String name, MemberAttributes attributes) {
1512private static CodeMemberMethod MethodDecl(Type type, String name, MemberAttributes attributes) {return Method(Type(type), name, attributes);}
1513private static CodeMemberMethod MethodDecl(String type, String name, MemberAttributes attributes) {return Method(Type(type), name, attributes);}
1514private static CodeMemberProperty PropertyDecl(String type, String name, MemberAttributes attributes) {
1523private static CodeMemberProperty PropertyDecl(Type type, String name, MemberAttributes attributes) {
1531private static CodeStatement VariableDecl(Type type, String name) { return new CodeVariableDeclarationStatement(type, name); }
1532private static CodeStatement VariableDecl(String type, String name, CodeExpression initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); }
1533private static CodeStatement VariableDecl(Type type, String name, CodeExpression initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); }
1534private static CodeMemberEvent EventDecl(String type, String name) {
fx\src\data\System\Data\Common\DBCommandBuilder.cs (4)
175Debug.Assert(_isMutatedName[iMutatedName], String.Format(CultureInfo.InvariantCulture, "{0} expected to be a mutated name", _baseParameterNames[iMutatedName]));
1052return String.Format(CultureInfo.InvariantCulture, _parameterMarkerFormat, parameterName);
1095return String.Format(CultureInfo.InvariantCulture, _parameterMarkerFormat, parameterName);
1219private object GetColumnValue(DataRow row, String columnName, DataTableMapping mappings, DataRowVersion version) {
fx\src\data\System\Data\Common\System.Data_BID.cs (73)
104[BidArgumentType(typeof(String))] System.Exception a2) {
239internal static void NotificationsTrace(string fmtPrintfW, System.String a1, System.String a2) {
323internal static void Trace(string fmtPrintfW, System.Data.OleDb.OleDbHResult a1, System.String a2) {
342internal static void Trace(string fmtPrintfW, System.String a1, System.String a2) {
348internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3) {
354internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4, System.Int32 a5) {
372[BidArgumentType(typeof(String))] System.Guid a2) {
381internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3) {
404internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2) {
441internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3) {
447internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3) {
453internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.Int32 a4) {
459internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4, System.String a5, System.Int32 a6) {
495internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3, System.Int32 a4, System.Boolean a5) {
513internal static void Trace(string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.String a4, System.Int32 a5, System.Int64 a6) {
531internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4, System.String a5, System.String a6, System.String a7, System.Int32 a8) {
537internal static void Trace(string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4) {
547internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2) {
565internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3) {
574internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3) {
592internal static void ScopeEnter(out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4) {
629internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4, System.Int32 a5);
633internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3);
641internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.String a1, System.String a2);
645internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.String a1, System.String a2);
649internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3);
657internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.String a1, System.String a2, System.String a3);
661internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.Int32 a4);
688internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2);
693internal static void Trace(IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3);
709internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3);
713internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3);
717internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.Int32 a4);
721internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4, System.String a5, System.Int32 a6);
733internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.String a4);
737internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Boolean a1, System.String a2, System.String a3, System.String a4);
753internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.Int32 a3, System.Int32 a4, System.Boolean a5);
769internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.String a2, System.String a3, System.String a4, System.Int32 a5, System.Int64 a6);
781internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.Int32 a4, System.String a5, System.String a6, System.String a7, System.Int32 a8);
785internal static void Trace (IntPtr hID, UIntPtr src, UIntPtr info, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3, System.String a4);
796internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2);
804internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.String a3);
808internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.String a2, System.Boolean a3);
816internal static void ScopeEnter (IntPtr hID, UIntPtr src, UIntPtr info, out IntPtr hScp, string fmtPrintfW, System.Int32 a1, System.Int32 a2, System.Int32 a3, System.String a4);
fx\src\data\System\Data\DataRelation.cs (5)
381if (String.Compare(relationName, value, true, locale) != 0) {
393else if (String.Compare(relationName, value, false, locale) != 0) {
428if (String.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0)
507if (ChildTable.DataSet != null && ( String.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0) )
534if (String.Compare(parentNs, rel.ParentTable.Namespace, StringComparison.Ordinal) != 0) {
fx\src\data\System\Data\DataSet.cs (23)
55private string _datasetPrefix = String.Empty;
58private const String KEY_XMLSCHEMA = "XmlSchema";
59private const String KEY_XMLDIFFGRAM = "XmlDiffGram";
189if ((String.Compare(attribValue, Keywords.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase) == 0)) {
192else if ((String.Compare(attribValue, Keywords.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase) == 0)) {
299info.AddValue(String.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), memStream.GetBuffer());
325String strSchema = this.GetXmlSchemaForRemoting(null);
327String strData = null;
360Byte[] buffer = (Byte[])info.GetValue(String.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), typeof(Byte[]));
385string strSchema = (String)info.GetValue(KEY_XMLSCHEMA, typeof(System.String));
401string strData = (String)info.GetValue(KEY_XMLDIFFGRAM, typeof(System.String));
677value = String.Empty;
696_datasetPrefix = String.Empty;
713value = String.Empty;
1531public void InferXmlSchema(String fileName, string[] nsArray)
1738public void ReadXmlSchema(String fileName)
1770public void WriteXmlSchema(String fileName)
1780public void WriteXmlSchema(String fileName, Converter<Type, string> multipleTargetConverter)
1820private void WriteXmlSchema(String fileName, SchemaFormat schemaFormat, Converter<Type, string> multipleTargetConverter)
2608public void WriteXml(String fileName)
2669public void WriteXml(String fileName, XmlWriteMode mode)
fx\src\data\System\Data\DataTable.cs (75)
161private const String KEY_XMLSCHEMA = "XmlSchema";
162private const String KEY_XMLDIFFGRAM = "XmlDiffGram";
163private const String KEY_NAME = "TableName";
292string strSchema = (String)info.GetValue(KEY_XMLSCHEMA, typeof(System.String));
293string strData = (String)info.GetValue(KEY_XMLDIFFGRAM, typeof(System.String));
351info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnName", i), Columns[i].ColumnName);
352info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.Namespace", i), Columns[i]._columnUri);
353info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.Prefix", i), Columns[i].Prefix);
354info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), Columns[i].ColumnMapping);
355info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.AllowDBNull", i), Columns[i].AllowDBNull);
356info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrement", i), Columns[i].AutoIncrement);
357info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementStep", i), Columns[i].AutoIncrementStep);
358info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementSeed", i), Columns[i].AutoIncrementSeed);
359info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.Caption", i), Columns[i].Caption);
360info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), Columns[i].DefaultValue);
361info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ReadOnly", i), Columns[i].ReadOnly);
362info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i), Columns[i].MaxLength);
363info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DataType", i), Columns[i].DataType);
365info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.XmlDataType", i), Columns[i].XmlDataType);
366info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.SimpleType", i), Columns[i].SimpleType);
368info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DateTimeMode", i), Columns[i].DateTimeMode);
371info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementCurrent", i), Columns[i].AutoIncrementCurrent);
375info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.Expression", i), Columns[i].Expression);
379info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ExtendedProperties", i), Columns[i].extendedProperties);
427dc.ColumnName = info.GetString(String.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnName", i));
428dc._columnUri = info.GetString(String.Format(formatProvider, "DataTable.DataColumn_{0}.Namespace", i));
429dc.Prefix = info.GetString(String.Format(formatProvider, "DataTable.DataColumn_{0}.Prefix", i));
431dc.DataType = (Type) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DataType", i), typeof(Type));
432dc.XmlDataType = (string) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.XmlDataType", i), typeof(string));
433dc.SimpleType = (SimpleType) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.SimpleType", i), typeof(SimpleType));
435dc.ColumnMapping = (MappingType) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), typeof(MappingType));
436dc.DateTimeMode = (DataSetDateTime) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DateTimeMode", i), typeof(DataSetDateTime));
438dc.AllowDBNull = info.GetBoolean(String.Format(formatProvider, "DataTable.DataColumn_{0}.AllowDBNull", i));
439dc.AutoIncrement = info.GetBoolean(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrement", i));
440dc.AutoIncrementStep = info.GetInt64(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementStep", i));
441dc.AutoIncrementSeed = info.GetInt64(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementSeed", i));
442dc.Caption = info.GetString(String.Format(formatProvider, "DataTable.DataColumn_{0}.Caption", i));
443dc.DefaultValue = info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), typeof(object));
444dc.ReadOnly = info.GetBoolean(String.Format(formatProvider, "DataTable.DataColumn_{0}.ReadOnly", i));
445dc.MaxLength= info.GetInt32(String.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i));
448dc.AutoIncrementCurrent = info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementCurrent", i), typeof(object));
452expressions[i] = info.GetString(String.Format(formatProvider, "DataTable.DataColumn_{0}.Expression", i));
456dc.extendedProperties = (PropertyCollection) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ExtendedProperties", i), typeof(PropertyCollection));
535info.AddValue(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), constraintList);
545ArrayList constraintList = (ArrayList) info.GetValue(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), typeof(ArrayList));
608info.AddValue(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.DataColumn_{1}.Expression", serIndex, i), Columns[i].Expression);
616string expr = info.GetString(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.DataColumn_{1}.Expression", serIndex, i));
691info.AddValue(String.Format(formatProvider, "DataTable_{0}.Rows.Count", serIndex), rowCount);
692info.AddValue(String.Format(formatProvider, "DataTable_{0}.Records.Count", serIndex), recordCount);
693info.AddValue(String.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), rowStates);
694info.AddValue(String.Format(formatProvider, "DataTable_{0}.Records", serIndex), storeList);
695info.AddValue(String.Format(formatProvider, "DataTable_{0}.NullBits", serIndex), nullbitList);
696info.AddValue(String.Format(formatProvider, "DataTable_{0}.RowErrors", serIndex), rowErrors);
697info.AddValue(String.Format(formatProvider, "DataTable_{0}.ColumnErrors", serIndex), colErrors);
710int rowCount = info.GetInt32(String.Format(formatProvider, "DataTable_{0}.Rows.Count", serIndex));
711int recordCount = info.GetInt32(String.Format(formatProvider, "DataTable_{0}.Records.Count", serIndex));
712BitArray rowStates = (BitArray) info.GetValue(String.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), typeof(BitArray));
713ArrayList storeList = (ArrayList) info.GetValue(String.Format(formatProvider, "DataTable_{0}.Records", serIndex), typeof(ArrayList));
714ArrayList nullbitList = (ArrayList) info.GetValue(String.Format(formatProvider, "DataTable_{0}.NullBits", serIndex), typeof(ArrayList));
715Hashtable rowErrors = (Hashtable) info.GetValue(String.Format(formatProvider, "DataTable_{0}.RowErrors", serIndex), typeof(Hashtable));
717Hashtable colErrors = (Hashtable) info.GetValue(String.Format(formatProvider, "DataTable_{0}.ColumnErrors", serIndex), typeof(Hashtable));
1668if (String.Compare(tableName, value, true, currentLocale) != 0) {
1672if ((0 == String.Compare(value, dataSet.DataSetName, true, dataSet.Locale)) && !fNestedInDataset)
1702else if (String.Compare(tableName, value, false, currentLocale) != 0) {
3377if (length >= 5 && String.Compare(current, length - 4, " ASC", 0, 4, StringComparison.OrdinalIgnoreCase) == 0) {
3380else if (length >= 6 && String.Compare(current, length - 5, " DESC", 0, 5, StringComparison.OrdinalIgnoreCase) == 0) {
4779public void WriteXml(String fileName)
4786public void WriteXml(String fileName, bool writeHierarchy)
4884public void WriteXml(String fileName, XmlWriteMode mode)
4891public void WriteXml(String fileName, XmlWriteMode mode, bool writeHierarchy)
5022public void WriteXmlSchema(String fileName) {
5028public void WriteXmlSchema(String fileName, bool writeHierarchy)
5704public void ReadXmlSchema(String fileName)
fx\src\data\System\Data\Odbc\Odbc32.cs (7)
779static internal readonly TypeMap _Char = new TypeMap(OdbcType.Char, DbType.AnsiStringFixedLength, typeof(String), ODBC32.SQL_TYPE.CHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
788static private readonly TypeMap _NChar = new TypeMap(OdbcType.NChar, DbType.StringFixedLength, typeof(String), ODBC32.SQL_TYPE.WCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
789static internal readonly TypeMap _NText = new TypeMap(OdbcType.NText, DbType.String, typeof(String), ODBC32.SQL_TYPE.WLONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
791static internal readonly TypeMap _NVarChar = new TypeMap(OdbcType.NVarChar, DbType.String, typeof(String), ODBC32.SQL_TYPE.WVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
796static internal readonly TypeMap _Text = new TypeMap(OdbcType.Text, DbType.AnsiString, typeof(String), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
800static internal readonly TypeMap _VarChar = new TypeMap(OdbcType.VarChar, DbType.AnsiString, typeof(String), ODBC32.SQL_TYPE.VARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
803static private readonly TypeMap _XML = new TypeMap(OdbcType.Text, DbType.AnsiString, typeof(String), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (27)
343override public String GetDataTypeName(int i) {
369override public String GetName(int i) {
795override public String GetString(int i) {
796return (String)internalGetString(i);
985cachedObj = (String)internalGetString(i);
1388private String GetColAttributeStr(int i, ODBC32.SQL_DESC v3FieldId, ODBC32.SQL_COLUMN v2FieldId, ODBC32.HANDLER handler) {
1430private String GetDescFieldStr(int i, ODBC32.SQL_DESC attribute, ODBC32.HANDLER handler) {
1928columns.Add(new DataColumn("ColumnName", typeof(System.String)));
1942columns.Add(new DataColumn("BaseSchemaName", typeof(System.String)));
1943columns.Add(new DataColumn("BaseCatalogName", typeof(System.String)));
1944columns.Add(new DataColumn("BaseTableName", typeof(System.String)));
1945columns.Add(new DataColumn("BaseColumnName", typeof(System.String)));
2183String columnname = String.Empty;
2184String indexname = String.Empty;
2185String currentindexname = String.Empty;
2202String tablename1 = String.Copy(qualifiedTableName.GetTable(quoted));
2353internal bool SameIndexColumn(String currentindexname, String indexname, int ordinal, int ncols)
2364internal int GetOrdinalFromBaseColName(String columnname) {
2368internal int GetOrdinalFromBaseColName(String columnname, String tablename)
2404String localcmdtext = _cmdText;
2408String tablename;
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (11)
506private DataTable GetColumnsCollection(String[] restrictions, OdbcConnection connection){
515String[] allRestrictions = new string[columnsRestrictionsCount];
742private DataTable GetDataTypesCollection(String[] restrictions, OdbcConnection connection){
785private DataTable GetIndexCollection(String[] restrictions, OdbcConnection connection){
833private DataTable GetProcedureColumnsCollection(String[] restrictions, OdbcConnection connection,Boolean isColumns){
842String[] allRestrictions = new string[procedureColumnsRestrictionsCount];
870private DataTable GetProceduresCollection(String[] restrictions, OdbcConnection connection){
880String[] allRestrictions = new string[columnsRestrictionsCount];
960private DataTable GetTablesCollection(String[] restrictions, OdbcConnection connection, Boolean isTables){
1031protected override DataTable PrepareCollection(String collectionName, String[] restrictions, DbConnection connection){
fx\src\data\System\Data\Odbc\OdbcParameter.cs (10)
316else if (value is String) {
317cch = ((String)value).Length - offset;
374Debug.Assert((0 <= cch) && (cch < 0x3fffffff), String.Format((IFormatProvider)null, "GetColumnSize: cch = {0} out of range, _internalShouldSerializeSize = {1}, _internalSize = {2}",cch, _internalShouldSerializeSize, _internalSize));
389if (value is String) {
410Debug.Assert((0 <= cch) && (cch < 0x3fffffff), String.Format((IFormatProvider)null, "GetValueSize: cch = {0} out of range, _internalShouldSerializeSize = {1}, _internalSize = {2}",cch, _internalShouldSerializeSize, _internalSize));
437else if (value is String) {
438ccb = (((String)value).Length - offset ) * 2 + 2;
456if ((value is String) && (ccb < ((String)value).Length) && (_bindtype == _originalbindtype)) {
458ccb = ((String)value).Length;
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (9)
160static private readonly NativeDBType D_BSTR = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.BSTR, NativeDBType.BSTR, S_BSTR, typeof(System.String), NativeDBType.BSTR, DbType.String ); // 2 - integer4 (pointer)
161static private readonly NativeDBType D_Char = new NativeDBType(0xff, -1, true, false, OleDbType.Char, NativeDBType.STR, S_CHAR, typeof(System.String), NativeDBType.WSTR/*STR*/, DbType.AnsiStringFixedLength); // 3 - (ansi pointer)
178static private readonly NativeDBType D_LongVarChar = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarChar, NativeDBType.STR, S_LONGVARCHAR, typeof(System.String), NativeDBType.WSTR/*STR*/, DbType.AnsiString); // 20 - (ansi pointer)
189static private readonly NativeDBType D_VarChar = new NativeDBType(0xff, -1, false, false, OleDbType.VarChar, NativeDBType.STR, S_VARCHAR, typeof(System.String), NativeDBType.WSTR/*STR*/, DbType.AnsiString); // 30 - (ansi pointer)
192static private readonly NativeDBType D_WChar = new NativeDBType(0xff, -1, true, false, OleDbType.WChar, NativeDBType.WSTR, S_WCHAR, typeof(System.String), NativeDBType.WSTR, DbType.StringFixedLength); // 33 - (unicode pointer)
193static private readonly NativeDBType D_VarWChar = new NativeDBType(0xff, -1, false, false, OleDbType.VarWChar, NativeDBType.WSTR, S_WVARCHAR, typeof(System.String), NativeDBType.WSTR, DbType.String ); // 34 - (unicode pointer)
194static private readonly NativeDBType D_LongVarWChar = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarWChar, NativeDBType.WSTR, S_WLONGVARCHAR, typeof(System.String), NativeDBType.WSTR, DbType.String ); // 35 - (unicode pointer)
197static private readonly NativeDBType D_Xml = new NativeDBType(0xff, -1, false, false, OleDbType.VarWChar, NativeDBType.XML, S_XML, typeof(System.String), NativeDBType.WSTR, DbType.String ); // 38 - (unicode pointer)
218internal readonly String dataSourceType; // ICommandWithParameters.SetParameterInfo standard type name
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (2)
128Debug.Assert(String.Compare(_Cluster, 0, instance2, 0, _clusterLength, StringComparison.OrdinalIgnoreCase) == 0);
133Debug.Assert(String.Compare(_Version, 0, instance2, 0, _versionLength, StringComparison.OrdinalIgnoreCase) == 0);
fx\src\data\System\Data\Sql\SqlMetaData.cs (25)
61public SqlMetaData(String name, SqlDbType dbType) {
67public SqlMetaData(String name, SqlDbType dbType, bool useServerDefault,
75public SqlMetaData(String name, SqlDbType dbType, long maxLength) {
82public SqlMetaData(String name, SqlDbType dbType, long maxLength, bool useServerDefault,
89public SqlMetaData(String name, SqlDbType dbType, Type userDefinedType) {
95public SqlMetaData(String name, SqlDbType dbType, Type userDefinedType, string serverTypeName) {
101public SqlMetaData(String name, SqlDbType dbType, Type userDefinedType, string serverTypeName,
108public SqlMetaData(String name, SqlDbType dbType, byte precision, byte scale) {
121public SqlMetaData(String name, SqlDbType dbType, long maxLength, long locale,
128public SqlMetaData(String name, SqlDbType dbType, long maxLength, long locale,
136public SqlMetaData(String name, SqlDbType dbType, string database, string owningSchema,
144public SqlMetaData(String name, SqlDbType dbType, long maxLength, byte precision,
153public SqlMetaData(String name, SqlDbType dbType, long maxLength, byte precision,
209public SqlMetaData(String name, SqlDbType dbType, string database, string owningSchema, string objectName) {
215internal SqlMetaData (String name,
246private SqlMetaData (String name,
411private void Construct(String name, SqlDbType dbType, bool useServerDefault,
458private void Construct(String name, SqlDbType dbType, long maxLength, bool useServerDefault,
519private void Construct(String name,
594private void Construct( String name, SqlDbType dbType, byte precision, byte scale, bool useServerDefault,
630private void Construct(String name, SqlDbType dbType, Type userDefinedType, string serverTypeName, bool useServerDefault,
655private void Construct(String name, SqlDbType dbType, string database, string owningSchema,
1061case TypeCode.String: value = this.Adjust((String)value); break;
1125public static SqlMetaData InferFromValue(object value, String name) {
1153long maxLen = ((String)value).Length;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (12)
430DataColumn ColumnName = new DataColumn(SchemaTableColumn.ColumnName, typeof(System.String));
451DataColumn BaseCatalogName = new DataColumn(SchemaTableOptionalColumn.BaseCatalogName, typeof(System.String));
452DataColumn BaseSchemaName = new DataColumn(SchemaTableColumn.BaseSchemaName, typeof(System.String));
453DataColumn BaseTableName = new DataColumn(SchemaTableColumn.BaseTableName, typeof(System.String));
454DataColumn BaseColumnName = new DataColumn(SchemaTableColumn.BaseColumnName, typeof(System.String));
457DataColumn BaseServerName = new DataColumn(SchemaTableOptionalColumn.BaseServerName, typeof(System.String));
461DataColumn DataTypeName = new DataColumn("DataTypeName", typeof(System.String));
462DataColumn UdtAssemblyQualifiedName = new DataColumn("UdtAssemblyQualifiedName", typeof(System.String));
464DataColumn XmlSchemaCollectionDatabase = new DataColumn("XmlSchemaCollectionDatabase", typeof(System.String));
465DataColumn XmlSchemaCollectionOwningSchema = new DataColumn("XmlSchemaCollectionOwningSchema", typeof(System.String));
466DataColumn XmlSchemaCollectionName = new DataColumn("XmlSchemaCollectionName", typeof(System.String));
905Debug.Assert(SniContext.Snix_Read==stateObj.SniContext, String.Format((IFormatProvider)null, "The SniContext should be Snix_Read but it actually is {0}", stateObj.SniContext));
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (14)
58public override String GetName(int ordinal) {
63public override String GetDataTypeName(int ordinal) {
270public override String GetString(int ordinal) {
470DataColumn ColumnName = new DataColumn(SchemaTableColumn.ColumnName, typeof(System.String));
491DataColumn BaseCatalogName = new DataColumn(SchemaTableOptionalColumn.BaseCatalogName, typeof(System.String));
492DataColumn BaseSchemaName = new DataColumn(SchemaTableColumn.BaseSchemaName, typeof(System.String));
493DataColumn BaseTableName = new DataColumn(SchemaTableColumn.BaseTableName, typeof(System.String));
494DataColumn BaseColumnName = new DataColumn(SchemaTableColumn.BaseColumnName, typeof(System.String));
497DataColumn BaseServerName = new DataColumn(SchemaTableOptionalColumn.BaseServerName, typeof(System.String));
502DataColumn DataTypeName = new DataColumn("DataTypeName", typeof(System.String));
503DataColumn UdtAssemblyQualifiedName = new DataColumn("UdtAssemblyQualifiedName", typeof(System.String));
505DataColumn XmlSchemaCollectionDatabase = new DataColumn("XmlSchemaCollectionDatabase", typeof(System.String));
506DataColumn XmlSchemaCollectionOwningSchema = new DataColumn("XmlSchemaCollectionOwningSchema", typeof(System.String));
507DataColumn XmlSchemaCollectionName = new DataColumn("XmlSchemaCollectionName", typeof(System.String));
fx\src\data\System\Data\SqlClient\SqlEnums.cs (10)
701internal static String GetStringFromXml(XmlReader xmlreader) {
755(255, 255, -1, false, false, false, TdsEnums.SQLBIGCHAR, TdsEnums.SQLBIGCHAR, MetaTypeName.CHAR, typeof(System.String), typeof(SqlString), SqlDbType.Char, DbType.AnsiStringFixedLength, 7);
758(255, 255, -1, false, false, false, TdsEnums.SQLBIGVARCHAR, TdsEnums.SQLBIGVARCHAR, MetaTypeName.VARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.VarChar, DbType.AnsiString, 7);
761(255, 255, -1, false, true, true, TdsEnums.SQLBIGVARCHAR, TdsEnums.SQLBIGVARCHAR, MetaTypeName.VARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.VarChar, DbType.AnsiString, 7);
764(255, 255, -1, false, true, false, TdsEnums.SQLTEXT, TdsEnums.SQLTEXT, MetaTypeName.TEXT, typeof(System.String), typeof(SqlString), SqlDbType.Text, DbType.AnsiString, 0);
770(255, 255, -1, false, false, false, TdsEnums.SQLNCHAR, TdsEnums.SQLNCHAR, MetaTypeName.NCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NChar, DbType.StringFixedLength, 7);
773(255, 255, -1, false, false, false, TdsEnums.SQLNVARCHAR, TdsEnums.SQLNVARCHAR, MetaTypeName.NVARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NVarChar, DbType.String, 7);
776(255, 255, -1, false, true, true, TdsEnums.SQLNVARCHAR, TdsEnums.SQLNVARCHAR, MetaTypeName.NVARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NVarChar, DbType.String, 7);
779(255, 255, -1, false, true, false, TdsEnums.SQLNTEXT, TdsEnums.SQLNTEXT, MetaTypeName.NTEXT, typeof(System.String), typeof(SqlString), SqlDbType.NText, DbType.String, 7);
788(255, 255, -1, false, true, true, TdsEnums.SQLXMLTYPE, TdsEnums.SQLXMLTYPE, MetaTypeName.XML, typeof(System.String), typeof(SqlXml), SqlDbType.Xml, DbType.Xml, 0);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (12)
204private string _instanceName = String.Empty;
383Debug.Assert(credential == null || (String.IsNullOrEmpty(connectionOptions.UserID) && String.IsNullOrEmpty(connectionOptions.Password)), "cannot mix the new secure password system and the connection string based password");
640return(String.Format((IFormatProvider)null, "{0:00}.{1:00}.{2:0000}", _loginAck.majorVersion,
952string transactionName = (null == name) ? String.Empty : name;
1236Debug.Assert(SniContext.Snix_Login == Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Snix_Login; actual Value: {0}", Parser._physicalStateObj.SniContext));
1417if (!String.IsNullOrEmpty(ConnectionOptions.FailoverPartner)) {
1542Debug.Assert(SniContext.Undefined== Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Undefined; actual Value: {0}", Parser._physicalStateObj.SniContext));
1587_instanceName = String.Empty;
1781Debug.Assert(SniContext.Undefined== Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Undefined; actual Value: {0}", Parser._physicalStateObj.SniContext));
1830Debug.Assert(SniContext.Undefined == Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Undefined; actual Value: {0}", Parser._physicalStateObj.SniContext));
1842_instanceName = String.Empty;
fx\src\data\System\Data\SqlClient\TdsParser.cs (18)
1362errorMessage = String.Empty; // If we don't see the expected null return nothing.
1384string providerRid = String.Format((IFormatProvider)null,"SNI_PN{0}", (int)sniError.provider);
1386Debug.Assert(!ADP.IsEmpty(providerName), String.Format((IFormatProvider)null,"invalid providerResourceId '{0}'", providerRid));
1425errorMessage = String.Format((IFormatProvider)null, "{0} (provider: {1}, error: {2} - {3})",
1824String.Format("Unexpected SniContext on call to TryRun; SniContext={0}", stateObj.SniContext));
1871Debug.Assert(false, String.Format((IFormatProvider)null, "unexpected token; token = {0,-2:X2}", token));
3244if (String.IsNullOrWhiteSpace(tempFedAuthInfo.stsurl) || String.IsNullOrWhiteSpace(tempFedAuthInfo.spn)) {
5003String s = null;
7205Debug.Assert(SniContext.Snix_Login==_physicalStateObj.SniContext, String.Format((IFormatProvider)null, "Unexpected SniContext. Expecting Snix_Login, actual value is '{0}'", _physicalStateObj.SniContext));
7653Debug.Assert(SniContext.Snix_Read==stateObj.SniContext, String.Format((IFormatProvider)null, "The SniContext should be Snix_Read but it actually is {0}", stateObj.SniContext));
8398String[] names = SqlParameter.ParseTypeName(param.UdtTypeName, true /* is UdtTypeName */);
9909else if ((currentType == typeof(String)) && (((String)value).Length > 0)) {
9910if ((value != null) && (((String)value)[0] & 0xff) != 0xff)
10027String sch = new String(((SqlChars)value).Value);
10982String sch = new String(((SqlChars)value).Value);
11420return String.Format(/*IFormatProvider*/ null,
fx\src\data\System\Data\SQLTypes\SQLString.cs (9)
61private String m_value;
209public SqlString(String data, int lcid, SqlCompareOptions compareOptions) {
229public SqlString(String data, int lcid) : this(data, lcid, x_iDefaultFlag) {
237public SqlString(String data) : this(data, System.Globalization.CultureInfo.CurrentCulture.LCID, x_iDefaultFlag) {
240private SqlString(int lcid, SqlCompareOptions compareOptions, String data, CompareInfo cmpInfo) {
273public String Value {
342public static implicit operator SqlString(String x) {
350public static explicit operator String(SqlString x) {
359public override String ToString() {
fx\src\data\System\Data\SQLTypes\SQLUtility.cs (12)
60public SqlTypeException(String message) : this(message, null) {
63public SqlTypeException(String message, Exception e) : base(message, e) { // MDAC 82931
90public SqlNullValueException(String message) : this(message, null) {
93public SqlNullValueException(String message, Exception e) : base(message, e) { // MDAC 82931
120public SqlTruncateException(String message) : this(message, null) {
123public SqlTruncateException(String message, Exception e) : base(message, e) { // MDAC 82931
152 public SqlNotFilledException(String message) : this(message, null) {
155 public SqlNotFilledException(String message, Exception e) : base(message, e) { // MDAC 82931
175 public SqlAlreadyFilledException(String message) : this(message, null) {
178 public SqlAlreadyFilledException(String message, Exception e) : base(message, e) { // MDAC 82931
198internal static void Check(bool condition, String conditionString, string message) {
203internal static void Check(bool condition, String conditionString) {
fx\src\data\System\Data\xmlsaver.cs (37)
71String s, v;
74s = (String) SqlConvert.ChangeTypeForXML(entry.Key, typeof(string));
78s = (String) Convert.ToString(entry.Key, CultureInfo.InvariantCulture);
82v = (String) SqlConvert.ChangeTypeForXML(entry.Value, typeof(string));
88v = (String) Convert.ToString(entry.Value, CultureInfo.InvariantCulture);
1590 == String.Compare(pd.Name, "Namespace" , StringComparison.Ordinal) ||
1600 == String.Compare(pd.Name, "PrimaryKey" , StringComparison.Ordinal) ||
1610 == String.Compare(pd.Name, "ColumnName" , StringComparison.Ordinal) ||
1620 == String.Compare(pd.Name, "DefaultValue" , StringComparison.Ordinal) ||
1630 == String.Compare(pd.Name, "TableName" , StringComparison.Ordinal) ||
1640 == String.Compare(pd.Name, "DataSetName" , StringComparison.Ordinal) ||
1650 == String.Compare(pd.Name, "AllowDBNull" , StringComparison.Ordinal) ||
1660 == String.Compare(pd.Name, "Unique" , StringComparison.Ordinal) ||
1670 == String.Compare(pd.Name, "NestedInDataSet" , StringComparison.Ordinal) ||
1680 == String.Compare(pd.Name, "Locale" , StringComparison.Ordinal) ||
1690 == String.Compare(pd.Name, "CaseSensitive", StringComparison.Ordinal) ||
1700 == String.Compare(pd.Name, "RemotingFormat" , StringComparison.Ordinal)
176if (0 == String.Compare(pd.Name, "DataType", StringComparison.Ordinal)) {
191if (0 == String.Compare(pd.Name, "Attribute", StringComparison.Ordinal)) {
249return String.Empty;
1135if (col.DataType != typeof(String)) {
1206String refString = (col.ColumnMapping != MappingType.Element) ? Keywords.XSD_ATTRIBUTE : Keywords.XSD_ELEMENT;
1603root.SetAttribute(Keywords.XSD_NILLABLE, String.Empty, Keywords.TRUE);
1707String xpathprefix = (_ds != null)? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : String.Empty) : String.Empty;
1710xpathprefix = table.Namespace.Length != 0 ? (string) prefixes[table.Namespace] +':' : String.Empty;
1934if (!String.IsNullOrEmpty(result))
1951if (String.IsNullOrEmpty(result))
2107string prefix = (table.Namespace.Length != 0) ? table.Prefix : String.Empty;
2123string columnPrefix = (column.Namespace.Length != 0) ? column.Prefix : String.Empty;
2176string tablePrefix = (table.Namespace.Length != 0) ? table.Prefix : String.Empty;
2216string colPrefix = (col.Namespace.Length != 0) ? col.Prefix : String.Empty;
2537internal void XmlDataRowWriter(DataRow row, String encodedTableName) {
2791public override void WriteRaw(String data) {
2996public override String LookupNamespace( String prefix ) {
fx\src\data\System\Data\XMLSchema.cs (42)
74internal static bool FEqualIdentity(XmlNode node, String name, String ns) {
81internal static bool GetBooleanAttribute(XmlElement element, String attrName, String attrNS, bool defVal) {
127String _schemaName = null;
333internal static String GetMsdataAttribute(XmlSchemaAnnotated node, String ln) {
385if (0 == String.Compare(rels[i].RelationName, strName, StringComparison.Ordinal))
675String typeName = GetInstanceName(element);
715if (this.FromInference && ds.Tables.Count == 0 && String.Compare(ds.DataSetName, "NewDataSet", StringComparison.Ordinal) == 0)
990String colName = field;
997String [] split = colName.Split(':');
1026internal bool GetBooleanAttribute(XmlSchemaAnnotated element, String attrName, bool defVal) {
1041internal String GetStringAttribute(XmlSchemaAnnotated element, String attrName, String defVal) {
1089String tableName = GetTableName(keyref);
1179String name = null;
1189String tableName = GetTableName(keyNode);
1228String typeName = XmlConvert.DecodeName(GetInstanceName(node));
1229String _TableUri;
1336String typeName = GetInstanceName(node);
1339String _TableUri;
1369String value= GetStringAttribute(typeNode, Keywords.MSD_CASESENSITIVE, "") ;
1529public readonly String name;
1531public NameType(String n, Type t) {
1535public int CompareTo(object obj) { return String.Compare(name, (string)obj, StringComparison.Ordinal); }
1673String _type = isAttr ? attr.SchemaTypeName.Name : el.SchemaTypeName.Name;
1674String _typeNs = isAttr ? attr.SchemaTypeName.Namespace : el.SchemaTypeName.Namespace;
1751String tmp = (-1).ToString(CultureInfo.CurrentCulture);
1809internal void HandleSimpleContentColumn(String strType, DataTable table, bool isBase, XmlAttribute[] attrs, bool isNillable){
1850String tmp = (-1).ToString(CultureInfo.CurrentCulture);
1906String strType = null;
2015String defValue = GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE);
2048String strType = null;
2168column.Namespace = String.Empty;
2176column.Namespace = String.Empty;
2185String tmp = GetStringAttribute(elem, Keywords.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture));
2220String value = GetMsdataAttribute(node, Keywords.MSD_LOCALE);
2388private String GetTableNamespace(XmlSchemaIdentityConstraint key) {
2408private String GetTableName(XmlSchemaIdentityConstraint key) {
2411String tableName = split[split.Length - 1]; //get the last string after '/' and ':'
System\Data\Mapping\BaseMetadataMappingVisitor.cs (4)
206Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", relationshipType.BuiltInTypeKind));
247Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", edmType.BuiltInTypeKind));
326Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", entityTypeBase.BuiltInTypeKind));
385Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", storagePropertyMapping.GetType()));
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (7)
425ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.AmbiguousMultiConstants, builder.ToString(), _context.AllWrappersForExtent, String.Empty);
468private static List<String> GetTypeBasedMemberPathList(IEnumerable<MemberPath> nonConditionalScalarAttributes)
471List<String> typeBasedMembers = new List<string>();
488ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.AttributesUnrecoverable, builder.ToString(), _context.AllWrappersForExtent, String.Empty);
575ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.AmbiguousMultiConstants, builder.ToString(), _context.AllWrappersForExtent, String.Empty);
627_errorLog.AddEntry(new ErrorLog.Record(true, ViewGenErrorCode.NoDefaultValue, builder.ToString(), _context.AllWrappersForExtent, String.Empty));
723ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ImpopssibleCondition, Strings.Viewgen_QV_RewritingNotFound(fragment.RightExtent.ToString()), fragment.Cells, String.Empty);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (3)
269ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.DuplicateCPropertiesMapped, builder.ToString(), sourceCell, String.Empty);
369ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.NotNullNoProjectedSlot, builder.ToString(), sourceCell, String.Empty);
514ErrorLog.Record error = new ErrorLog.Record(true, errorCode, message, ownerCell, String.Empty);
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (10)
143Trace.WriteLine(String.Empty);
144Trace.WriteLine(String.Empty);
167ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyMissingTableMapping, message, parentRewriter.UsedCells, String.Empty);
177ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyMissingTableMapping, message, childRewriter.UsedCells, String.Empty);
243ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyNotGuaranteedInCSpace, message, allWrappers, String.Empty);
339ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyMissingRelationshipMapping, message, bothExtentWrappers, String.Empty);
467ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyUpperBoundMustBeOne, message, cell, String.Empty);
478ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyLowerBoundMustBeOne, message, cell, String.Empty);
518ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyParentTableNotMappedToEnd, message, cell, String.Empty);
782ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyColumnOrderIncorrect, message, new Cell[] { errorParentCell, childCell }, String.Empty);
System\Data\Metadata\Perspective.cs (6)
56internal virtual bool TryGetMember(StructuralType type, String memberName, bool ignoreCase, out EdmMember outMember)
63internal bool TryGetEnumMember(EnumType type, String memberName, bool ignoreCase, out EnumMember outMember)
79internal bool TryGetExtent(EntityContainer entityContainer, String extentName, bool ignoreCase, out EntitySetBase outSet)
89internal bool TryGetFunctionImport(EntityContainer entityContainer, String functionImportName, bool ignoreCase, out EdmFunction functionImport)
96functionImport = entityContainer.FunctionImports.Where(fi => String.Equals(fi.Name, functionImportName, StringComparison.OrdinalIgnoreCase)).SingleOrDefault();
150var fullName = namespaceName + "." + functionName;
System\Data\Objects\ELinq\MethodCallTranslator.cs (23)
805if (String.IsNullOrEmpty(parameterValue))
838typeof(String).GetMethod("Replace", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(String), typeof(String) }, null),
839typeof(String).GetMethod("ToLower", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null),
840typeof(String).GetMethod("ToUpper", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null),
841typeof(String).GetMethod("Trim", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null),
980yield return typeof(String).GetMethod("Contains", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1010yield return typeof(String).GetMethod("IndexOf", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1032yield return typeof(String).GetMethod("StartsWith", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1063yield return typeof(String).GetMethod("EndsWith", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1096yield return typeof(String).GetMethod("Substring", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int) }, null);
1097yield return typeof(String).GetMethod("Substring", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null);
1135yield return typeof(String).GetMethod("Remove", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int) }, null);
1136yield return typeof(String).GetMethod("Remove", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null);
1217yield return typeof(String).GetMethod("Insert", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(string) }, null);
1260yield return typeof(String).GetMethod("IsNullOrEmpty", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
1289yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string) }, null);
1290yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string), typeof(string) }, null);
1291yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) }, null);
1365yield return typeof(String).GetMethod("Trim", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null);
1375yield return typeof(String).GetMethod("TrimStart", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null);
1385yield return typeof(String).GetMethod("TrimEnd", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null);
System\Data\Objects\Internal\EntityProxyFactory.cs (4)
69AssemblyName assemblyName = new AssemblyName(String.Format(CultureInfo.InvariantCulture, "EntityFrameworkDynamicProxies-{0}", assembly.FullName));
461Debug.Assert(property != null, String.Format(CultureInfo.CurrentCulture, "Expected property {0} to be defined on proxy type {1}", member.Name, proxyType.FullName));
464Debug.Assert(interceptorField != null, String.Format(CultureInfo.CurrentCulture, "Expected interceptor field for property {0} to be defined on proxy type {1}", member.Name, proxyType.FullName));
715string proxyTypeName = String.Format(CultureInfo.InvariantCulture, ProxyTypeNameFormat, baseName, _ospaceEntityType.HashedDescription);
System\Data\Objects\SqlClient\SqlFunctions.cs (89)
63public static System.Int32? Ascii(System.String arg)
72public static System.String Char(System.Int32? arg)
81public static System.Int32? CharIndex(System.String toSearch, System.String target)
99public static System.Int32? CharIndex(System.String toSearch, System.String target, System.Int32? startLocation)
117public static System.Int64? CharIndex(System.String toSearch, System.String target, System.Int64? startLocation)
136public static System.Int32? Difference(System.String string1, System.String string2)
145public static System.String NChar(System.Int32? arg)
155public static System.Int32? PatIndex(System.String stringPattern, System.String target)
165public static System.String QuoteName(System.String stringArg)
175public static System.String QuoteName(System.String stringArg, System.String quoteCharacter)
184public static System.String Replicate(System.String target, System.Int32? count)
193public static System.String SoundCode(System.String arg)
202public static System.String Space(System.Int32? arg1)
211public static System.String StringConvert(System.Double? number)
220public static System.String StringConvert(System.Decimal? number)
229public static System.String StringConvert(System.Double? number, System.Int32? length)
238public static System.String StringConvert(System.Decimal? number, System.Int32? length)
247public static System.String StringConvert(System.Double? number, System.Int32? length, System.Int32? decimalArg)
256public static System.String StringConvert(System.Decimal? number, System.Int32? length, System.Int32? decimalArg)
266public static System.String Stuff(System.String stringInput, System.Int32? start, System.Int32? length, System.String stringReplacement)
275public static System.Int32? Unicode(System.String arg)
653public static System.DateTime? DateAdd(System.String datePartArg, System.Double? number, System.DateTime? date)
662public static System.TimeSpan? DateAdd(System.String datePartArg, System.Double? number, System.TimeSpan? time)
671public static System.DateTimeOffset? DateAdd(System.String datePartArg, System.Double? number, System.DateTimeOffset? dateTimeOffsetArg)
680public static System.DateTime? DateAdd(System.String datePartArg, System.Double? number, System.String date)
689public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.DateTime? endDate)
698public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.DateTimeOffset? endDate)
707public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.TimeSpan? endDate)
716public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.DateTime? endDate)
725public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.DateTimeOffset? endDate)
734public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.TimeSpan? endDate)
743public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.String endDate)
752public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.String endDate)
761public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.String endDate)
770public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.String endDate)
779public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.DateTime? endDate)
788public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.DateTimeOffset? endDate)
797public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.TimeSpan? endDate)
806public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.TimeSpan? endDate)
815public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.DateTimeOffset? endDate)
824public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.DateTime? endDate)
833public static System.String DateName(System.String datePartArg, System.DateTime? date)
842public static System.String DateName(System.String datePartArg, System.String date)
851public static System.String DateName(System.String datePartArg, System.TimeSpan? date)
860public static System.String DateName(System.String datePartArg, System.DateTimeOffset? date)
869public static System.Int32? DatePart(System.String datePartArg, System.DateTime? date)
878public static System.Int32? DatePart(System.String datePartArg, System.DateTimeOffset? date)
887public static System.Int32? DatePart(System.String datePartArg, System.String date)
896public static System.Int32? DatePart(System.String datePartArg, System.TimeSpan? date)
977public static System.Int32? DataLength(System.String arg)
1031public static System.Int32? Checksum(System.String arg1)
1112public static System.Int32? Checksum(System.String arg1, System.String arg2)
1193public static System.Int32? Checksum(System.String arg1, System.String arg2, System.String arg3)
1256public static System.String CurrentUser()
1265public static System.String HostName()
1274public static System.String UserName(System.Int32? arg)
1283public static System.String UserName()
1292public static System.Int32? IsNumeric(System.String arg)
1301public static System.Int32? IsDate(System.String arg)
System\Data\Query\InternalTrees\ColumnMap.cs (11)
109Debug.Assert(!String.IsNullOrEmpty(value), "invalid name?");
227return String.Format(CultureInfo.InvariantCulture, "S({0},{1})", this.CommandId, this.ColumnPos);
270string separator = String.Empty;
423string separator = String.Empty;
510string separator = String.Empty;
578string str = String.Format(CultureInfo.InvariantCulture, "C{0}", base.ToString());
641string str = String.Format(CultureInfo.InvariantCulture, "E{0}", base.ToString());
877string str = String.Format(CultureInfo.InvariantCulture, "M{{{0}}}", this.Element.ToString());
947string separator = String.Empty;
1011string separator = String.Empty;
1091return this.IsNamed ? this.Name : String.Format(CultureInfo.InvariantCulture, "{0}", m_var.Id);
System\ServiceModel\Administration\EndpointInstanceProvider.cs (16)
23return EndpointReference(null != uri ? uri.ToString() : String.Empty, contractName, true);
28Fx.Assert(!String.IsNullOrEmpty(address), "address cannot be null");
30string endpointReference = String.Format(CultureInfo.InvariantCulture,
43null != contractName ? contractName : String.Empty,
56string machineAddress = String.Format(CultureInfo.InvariantCulture,
106instance.SetProperty(AdministrationStrings.Address, endpoint.Address == null ? String.Empty : endpoint.Address.ToString());
107instance.SetProperty(AdministrationStrings.ListenUri, endpoint.ListenUri == null ? String.Empty : endpoint.ListenUri.ToString());
108instance.SetProperty(AdministrationStrings.Identity, endpoint.Identity == null ? String.Empty : endpoint.Identity.ToString());
123instance.SetProperty(AdministrationStrings.CounterInstanceName, PerformanceCounters.PerformanceCountersEnabled ? EndpointPerformanceCounters.GetFriendlyInstanceName(endpoint.ServiceName, endpoint.Contract.Name, endpoint.Address.AbsoluteUri.ToUpperInvariant()) : String.Empty);
465string result = String.Format(CultureInfo.InvariantCulture,
472string result = String.Format(CultureInfo.InvariantCulture,
489string result = String.Format(CultureInfo.InvariantCulture,
628if (String.IsNullOrEmpty(operationName))
649if (null != endpointInfo.ListenUri && String.Equals(endpointInfo.ListenUri.ToString(), address, StringComparison.OrdinalIgnoreCase)
650&& null != endpointInfo.Contract && null != endpointInfo.Contract.Name && String.CompareOrdinal(endpointInfo.Contract.Name, contractName) == 0)
667string result = String.Empty;
System\ServiceModel\Administration\ServiceInstanceProvider.cs (18)
45if (String.Equals((string)instance.GetProperty(AdministrationStrings.DistinguishedName), info.DistinguishedName, StringComparison.OrdinalIgnoreCase))
60return String.Format(CultureInfo.InvariantCulture, AdministrationStrings.Service +
135instance.SetProperty(AdministrationStrings.CounterInstanceName, PerformanceCounters.PerformanceCountersEnabled ? ServicePerformanceCounters.GetFriendlyInstanceName(info.Service) : String.Empty);
167result += String.Format(CultureInfo.InvariantCulture, "Certificate: {0}\n", specificBehavior.ClientCertificate.Certificate);
173result += String.Format(CultureInfo.InvariantCulture, "AllowUntrustedRsaIssuers: {0}\n", specificBehavior.IssuedTokenAuthentication.AllowUntrustedRsaIssuers);
174result += String.Format(CultureInfo.InvariantCulture, "CertificateValidationMode: {0}\n", specificBehavior.IssuedTokenAuthentication.CertificateValidationMode);
175result += String.Format(CultureInfo.InvariantCulture, "RevocationMode: {0}\n", specificBehavior.IssuedTokenAuthentication.RevocationMode);
176result += String.Format(CultureInfo.InvariantCulture, "TrustedStoreLocation: {0}\n", specificBehavior.IssuedTokenAuthentication.TrustedStoreLocation);
181result += String.Format(CultureInfo.InvariantCulture, "Known certificate: {0}\n", certificate.FriendlyName);
184result += String.Format(CultureInfo.InvariantCulture, "AudienceUriMode: {0}\n", specificBehavior.IssuedTokenAuthentication.AudienceUriMode);
191result += String.Format(CultureInfo.InvariantCulture, "Allowed Uri: {0}\n", str);
201result += String.Format(CultureInfo.InvariantCulture, "Certificate: {0}\n", specificBehavior.Peer.Certificate.ToString(true));
211result += String.Format(CultureInfo.InvariantCulture, "ClaimType: {0}\n", claimType);
222instance.SetProperty(AdministrationStrings.UserNameAuthentication, String.Format(CultureInfo.InvariantCulture, "{0}: {1}", AdministrationStrings.ValidationMode, specificBehavior.UserNameAuthentication.UserNamePasswordValidationMode.ToString()));
226instance.SetProperty(AdministrationStrings.WindowsAuthentication, String.Format(CultureInfo.InvariantCulture, "{0}: {1}", AdministrationStrings.AllowAnonymous, specificBehavior.WindowsAuthentication.AllowAnonymousLogons.ToString()));
365string uri = serviceChannel.RemoteAddress == null ? String.Empty : serviceChannel.RemoteAddress.ToString();
367string contractName = null != serviceChannel.ClientRuntime ? serviceChannel.ClientRuntime.ContractName : String.Empty;
370instance.SetProperty(AdministrationStrings.LocalAddress, serviceChannel.LocalAddress == null ? String.Empty : serviceChannel.LocalAddress.ToString());
System\ServiceModel\Channels\HttpChannelListener.cs (6)
521WriteAuditEvent(AuditLevel.Failure, (authenticationContext.LogonUserIdentity != null) ? authenticationContext.LogonUserIdentity.Name : String.Empty, exception);
528WriteAuditEvent(AuditLevel.Success, (authenticationContext.LogonUserIdentity != null) ? authenticationContext.LogonUserIdentity.Name : String.Empty, null);
581WriteAuditEvent(AuditLevel.Failure, (identity != null) ? identity.Name : ((wid != null) ? wid.Name : String.Empty), exception);
590WriteAuditEvent(AuditLevel.Success, (identity != null) ? identity.Name : ((wid != null) ? wid.Name : String.Empty), null);
674WriteAuditEvent(AuditLevel.Failure, String.Empty, exception);
699WriteAuditEvent(AuditLevel.Failure, String.Empty, exception);
System\ServiceModel\Channels\HttpsChannelListener.cs (6)
219WriteAuditEvent(AuditLevel.Failure, (certificate != null) ? SecurityUtils.GetCertificateId(certificate) : String.Empty, exception);
226WriteAuditEvent(AuditLevel.Success, (certificate != null) ? SecurityUtils.GetCertificateId(certificate) : String.Empty, null);
280WriteAuditEvent(AuditLevel.Failure, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, exception);
287WriteAuditEvent(AuditLevel.Success, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, null);
339WriteAuditEvent(AuditLevel.Failure, (clientCertificate != null) ? SecurityUtils.GetCertificateId(clientCertificate) : String.Empty, exception);
387WriteAuditEvent(AuditLevel.Failure, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, exception);
System\ServiceModel\Channels\MessageFault.cs (7)
139if (String.Compare(code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) != 0)
144if ((String.Compare(code.Namespace, EnvelopeVersion.Soap11.Namespace, StringComparison.Ordinal) != 0) &&
145(String.Compare(code.Namespace, EnvelopeVersion.Soap12.Namespace, StringComparison.Ordinal) != 0))
234if ((String.Compare(headerInfo.Name, Message12Strings.NotUnderstood, StringComparison.Ordinal) == 0) &&
235(String.Compare(headerInfo.Namespace, Message12Strings.Namespace, StringComparison.Ordinal) == 0))
247(String.Compare(name, actualName, StringComparison.Ordinal) == 0) &&
248(String.Compare(ns, actualNamespace, StringComparison.Ordinal) == 0))
System\ServiceModel\Channels\PnrpPeerResolver.cs (11)
157Fx.Assert(!String.IsNullOrEmpty(cloud.Name), "Unknown scope id in the IPAddress");
164Fx.Assert(!String.IsNullOrEmpty(cloud.Name), "Unknown scope id in the IPAddress");
189Fx.Assert(!String.IsNullOrEmpty(cloud.Name), "Unknown scope id in the IPAddress");
195Fx.Assert(!String.IsNullOrEmpty(cloud.Name), "Unknown scope id in the IPAddress");
340if (regHandle == null || String.IsNullOrEmpty(regHandle.PeerName))
379if (input == null || String.IsNullOrEmpty(input.Comment))
399pathBuilder.Append(PathSeparator + String.Format(CultureInfo.InvariantCulture, "{0}", guid.ToString()));
402uriBuilder.Path = String.Format(CultureInfo.InvariantCulture, "{0}", pathBuilder.ToString());
567if ((ProtocolFromName(uri.Scheme) != 0) && !String.IsNullOrEmpty(uri.AbsolutePath))
571if ((0 == String.Compare(parts[0], PeerStrings.KnownServiceUriPrefix, StringComparison.OrdinalIgnoreCase)))
856if (!String.IsNullOrEmpty(message))
System\ServiceModel\Channels\SecurityBindingElement.cs (11)
1833sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
1834sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", this.defaultAlgorithmSuite.ToString()));
1835sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", this.includeTimestamp.ToString()));
1836sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", this.keyEntropyMode.ToString()));
1837sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", this.MessageSecurityVersion.ToString()));
1838sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", this.securityHeaderLayout.ToString()));
1839sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", this.protectTokens.ToString()));
1846sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
1852sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
1858sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
1864sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
System\ServiceModel\ComIntegration\AdminSDK.cs (82)
42String bstrCollName);
46Object Connect([In, MarshalAs(UnmanagedType.BStr)] String connectStr);
57String collName,
62void ImportComponent([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
63[In, MarshalAs(UnmanagedType.BStr)] String bstrCLSIDOrProgId);
66void InstallComponent([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
67[In, MarshalAs(UnmanagedType.BStr)] String bstrDLL,
68[In, MarshalAs(UnmanagedType.BStr)] String bstrTLB,
69[In, MarshalAs(UnmanagedType.BStr)] String bstrPSDLL);
72void ShutdownApplication([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName);
75void ExportApplication([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
76[In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationFile,
80void InstallApplication([In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationFile,
81[In, MarshalAs(UnmanagedType.BStr)] String bstrDestinationDirectory,
83[In, MarshalAs(UnmanagedType.BStr)] String bstrUserId,
84[In, MarshalAs(UnmanagedType.BStr)] String bstrPassword,
85[In, MarshalAs(UnmanagedType.BStr)] String bstrRSN);
103void InstallMultipleComponents([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
108void GetMultipleComponentsInfo([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
119void BackupREGDB([In, MarshalAs(UnmanagedType.BStr)] String bstrBackupFilePath);
122void RestoreREGDB([In, MarshalAs(UnmanagedType.BStr)] String bstrBackupFilePath);
125void QueryApplicationFile([In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationFile,
126[Out, MarshalAs(UnmanagedType.BStr)] out String bstrApplicationName,
127[Out, MarshalAs(UnmanagedType.BStr)] out String bstrApplicationDescription,
133void StartApplication([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName);
139void InstallMultipleEventClasses([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
144void InstallEventClass([In, MarshalAs(UnmanagedType.BStr)] String bstrApplIdOrName,
145[In, MarshalAs(UnmanagedType.BStr)] String bstrDLL,
146[In, MarshalAs(UnmanagedType.BStr)] String bstrTLB,
147[In, MarshalAs(UnmanagedType.BStr)] String bstrPSDLL);
150void GetEventClassesForIID([In] String bstrIID,
158[In, MarshalAs(UnmanagedType.BStr)] String bstrCollectionName,
163String GetApplicationInstanceIDFromProcessID([In, MarshalAs(UnmanagedType.I4)] int lProcessID);
185String DumpApplicationInstance(
186[In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationInstanceID,
187[In, MarshalAs(UnmanagedType.BStr)] String bstrDirectory,
196[In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName,
197[In, MarshalAs(UnmanagedType.BStr)] String bstrServiceName,
198[In, MarshalAs(UnmanagedType.BStr)] String bstrStartType,
199[In, MarshalAs(UnmanagedType.BStr)] String bstrErrorControl,
200[In, MarshalAs(UnmanagedType.BStr)] String bstrDependencies,
201[In, MarshalAs(UnmanagedType.BStr)] String bstrRunAs,
202[In, MarshalAs(UnmanagedType.BStr)] String bstrPassword,
206void DeleteServiceForApplication([In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName);
210String GetPartitionID([In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName);
214String GetPartitionName([In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName);
217void CurrentPartition([In, MarshalAs(UnmanagedType.BStr)]String bstrPartitionIDOrName);
221String CurrentPartitionID();
225String CurrentPartitionName();
229String GlobalPartitionID();
236[In, MarshalAs(UnmanagedType.BStr)] String bstrSourcePartitionIDOrName,
238[In, MarshalAs(UnmanagedType.BStr)] String bstrDestinationPartitionIDOrName);
242[In, MarshalAs(UnmanagedType.BStr)] String bstrSourceApplicationIDOrName,
244[In, MarshalAs(UnmanagedType.BStr)] String bstrDestinationApplicationIDOrName);
248[In, MarshalAs(UnmanagedType.BStr)] String bstrSourceApplicationIDOrName,
250[In, MarshalAs(UnmanagedType.BStr)] String bstrDestinationApplicationIDOrName);
254[In, MarshalAs(UnmanagedType.BStr)] String bstrSrcApplicationIDOrName,
255[In, MarshalAs(UnmanagedType.BStr)] String bstrCLSIDOrProgID,
256[In, MarshalAs(UnmanagedType.BStr)] String bstrDestApplicationIDOrName,
257[In, MarshalAs(UnmanagedType.BStr)] String bstrNewProgId,
258[In, MarshalAs(UnmanagedType.BStr)] String bstrNewClsid);
262Object IsSafeToDelete([In, MarshalAs(UnmanagedType.BStr)] String bstrDllName);
266[In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName,
272[In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName,
278[In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationIDOrName,
288[In, MarshalAs(UnmanagedType.BStr)] String bstrPartitionIDOrName,
289[In, MarshalAs(UnmanagedType.BStr)] String bstrPartitionFileName,
294[In, MarshalAs(UnmanagedType.BStr)] String bstrFileName,
295[In, MarshalAs(UnmanagedType.BStr)] String bstrDestDirectory,
297[In, MarshalAs(UnmanagedType.BStr)] String bstrUserID,
298[In, MarshalAs(UnmanagedType.BStr)] String bstrPassword,
299[In, MarshalAs(UnmanagedType.BStr)] String bstrRSN);
303Object QueryApplicationFile2([In, MarshalAs(UnmanagedType.BStr)] String bstrApplicationFile);
307int GetComponentVersionCount([In, MarshalAs(UnmanagedType.BStr)] String bstrCLSIDOrProgID);
315Object GetValue([In, MarshalAs(UnmanagedType.BStr)] String propName);
318void SetValue([In, MarshalAs(UnmanagedType.BStr)] String propName,
329bool IsPropertyReadOnly([In, MarshalAs(UnmanagedType.BStr)] String bstrPropName);
340bool IsPropertyWriteOnly([In, MarshalAs(UnmanagedType.BStr)] String bstrPropName);
373Object GetCollection([In, MarshalAs(UnmanagedType.BStr)] String bstrCollName,
413void PopulateByQuery([In, MarshalAs(UnmanagedType.BStr)] String bstrQueryString,
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (12)
252internal const String KERNEL32 = "kernel32.dll";
253internal const String ADVAPI32 = "advapi32.dll";
254internal const String OLE32 = "ole32.dll";
255internal const String OLEAUT32 = "oleaut32.dll";
256internal const String COMSVCS = "comsvcs.dll";
257internal const String SECUR32 = "secur32.dll";
258internal const String NETAPI32 = "netapi32.dll";
310internal static extern int RegOpenKeyEx(RegistryHandle hKey, String lpSubKey,
315internal static extern int RegSetValueEx(RegistryHandle hKey, String lpValueName,
316int Reserved, int dwType, String val, int cbData);
324internal static extern int RegQueryValueEx(RegistryHandle hKey, String lpValueName,
333internal static extern int RegDeleteKey(RegistryHandle hKey, String lpValueName);
System\ServiceModel\ComIntegration\TypeCacheManager.cs (16)
67private Guid GettypeLibraryIDFromIID(Guid iid, bool isServer, out String version)
76keyName = String.Concat("software\\classes\\interface\\{", iid.ToString(), "}\\typelib");
81keyName = String.Concat("interface\\{", iid.ToString(), "}\\typelib");
113if (String.IsNullOrEmpty(version))
165String version;
193String assembly = opaqueData as String;
194if (String.IsNullOrEmpty(assembly))
353string keyName = String.Concat("software\\classes\\clsid\\{", clsid.ToString(), "}\\InprocServer32");
367if (String.IsNullOrEmpty(keyName))
372if (String.IsNullOrEmpty(assemblyName))
383if (String.IsNullOrEmpty(assemblyName))
402using (RegistryHandle clsidKey = hkcr.OpenSubKey(String.Concat("CLSID\\{", clsid.ToString(), "}\\InprocServer32")))
413if (String.IsNullOrEmpty(keyName))
418if (String.IsNullOrEmpty(assemblyName))
429if (String.IsNullOrEmpty(assemblyName))
System\ServiceModel\Configuration\ExtensionsSection.cs (7)
160string collectionName = String.Empty;
184Fx.Assert(String.Format(CultureInfo.InvariantCulture, "{0} is not a type supported by the ServiceModelExtensionsSection collections.", extensionType.AssemblyQualifiedName));
185DiagnosticUtility.FailFast(String.Format(CultureInfo.InvariantCulture, "{0} is not a type supported by the ServiceModelExtensionsSection collections.", extensionType.AssemblyQualifiedName));
234Fx.Assert(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
235DiagnosticUtility.FailFast(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
288Fx.Assert(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
289DiagnosticUtility.FailFast(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
System\ServiceModel\Configuration\Properties.cs (108)
245properties.Add(new ConfigurationProperty("packageFullName", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
270properties.Add(new ConfigurationProperty("allowedAudienceUri", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
318properties.Add(new ConfigurationProperty("serviceAuthenticationManagerType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
343properties.Add(new ConfigurationProperty("policyType", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
367properties.Add(new ConfigurationProperty("baseAddress", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
595properties.Add(new ConfigurationProperty("encodedValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
622properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
648properties.Add(new ConfigurationProperty("behaviorConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
649properties.Add(new ConfigurationProperty("binding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
650properties.Add(new ConfigurationProperty("bindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
651properties.Add(new ConfigurationProperty("contract", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
654properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
655properties.Add(new ConfigurationProperty("kind", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
656properties.Add(new ConfigurationProperty("endpointConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
730properties.Add(new ConfigurationProperty("claimType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
828properties.Add(new ConfigurationProperty("type", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1017properties.Add(new ConfigurationProperty("scheme", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
1042properties.Add(new ConfigurationProperty("type", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
1070properties.Add(new ConfigurationProperty("etwProviderId", typeof(System.String), "{c651f5f6-1c0d-492e-8ae1-b4efd7c9d503}", null, new System.Configuration.StringValidator(32, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1094properties.Add(new ConfigurationProperty("value", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1174properties.Add(new ConfigurationProperty("issuedTokenType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1311properties.Add(new ConfigurationProperty("type", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1371properties.Add(new ConfigurationProperty("realm", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1403properties.Add(new ConfigurationProperty("realm", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1457properties.Add(new ConfigurationProperty("localIssuerChannelBehaviors", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1488properties.Add(new ConfigurationProperty("customCertificateValidatorType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1492properties.Add(new ConfigurationProperty("samlSerializerType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1518properties.Add(new ConfigurationProperty("issuerAddress", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
1519properties.Add(new ConfigurationProperty("behaviorConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1550properties.Add(new ConfigurationProperty("tokenType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1575properties.Add(new ConfigurationProperty("binding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
1576properties.Add(new ConfigurationProperty("bindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2033properties.Add(new ConfigurationProperty("groupName", typeof(System.String), "default", null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2213properties.Add(new ConfigurationProperty("subProtocol", typeof(System.String), "soap", null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2240properties.Add(new ConfigurationProperty("subProtocol", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2523properties.Add(new ConfigurationProperty("binding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2524properties.Add(new ConfigurationProperty("bindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2525properties.Add(new ConfigurationProperty("resolverType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2652properties.Add(new ConfigurationProperty("type", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
2701properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
2838properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
2911properties.Add(new ConfigurationProperty("value", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
2966properties.Add(new ConfigurationProperty("securityStateEncoderType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3055properties.Add(new ConfigurationProperty("relativeAddress", typeof(System.String), null, null, new System.ServiceModel.Configuration.ServiceActivationElement.RelativeAddressValidator(), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
3056properties.Add(new ConfigurationProperty("service", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3057properties.Add(new ConfigurationProperty("factory", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3082properties.Add(new ConfigurationProperty("roleProviderName", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3085properties.Add(new ConfigurationProperty("serviceAuthorizationManagerType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3110properties.Add(new ConfigurationProperty("type", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3115properties.Add(new ConfigurationProperty("identityConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3143properties.Add(new ConfigurationProperty("behaviorConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3146properties.Add(new ConfigurationProperty("name", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
3171properties.Add(new ConfigurationProperty("behaviorConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3172properties.Add(new ConfigurationProperty("binding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3173properties.Add(new ConfigurationProperty("bindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3174properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3175properties.Add(new ConfigurationProperty("bindingName", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3176properties.Add(new ConfigurationProperty("bindingNamespace", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3177properties.Add(new ConfigurationProperty("contract", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3183properties.Add(new ConfigurationProperty("kind", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3184properties.Add(new ConfigurationProperty("endpointConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3208properties.Add(new ConfigurationProperty("name", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
3209properties.Add(new ConfigurationProperty("type", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired));
3287properties.Add(new ConfigurationProperty("scheme", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
3288properties.Add(new ConfigurationProperty("binding", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired));
3289properties.Add(new ConfigurationProperty("bindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3318properties.Add(new ConfigurationProperty("httpGetBinding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3319properties.Add(new ConfigurationProperty("httpGetBindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3320properties.Add(new ConfigurationProperty("httpsGetBinding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3321properties.Add(new ConfigurationProperty("httpsGetBindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3450properties.Add(new ConfigurationProperty("value", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3606properties.Add(new ConfigurationProperty("name", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
3607properties.Add(new ConfigurationProperty("transportConfigurationType", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired));
3631properties.Add(new ConfigurationProperty("value", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3657properties.Add(new ConfigurationProperty("membershipProviderName", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3658properties.Add(new ConfigurationProperty("customUserNamePasswordValidatorType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
3759properties.Add(new ConfigurationProperty("type", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
3971properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsKey));
3998properties.Add(new ConfigurationProperty("customCertificateValidatorType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4027properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4054properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4081properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4160properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4188properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4215properties.Add(new ConfigurationProperty("customCertificateValidatorType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4242properties.Add(new ConfigurationProperty("contract", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
4244properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4245properties.Add(new ConfigurationProperty("namespace", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4296properties.Add(new ConfigurationProperty("exposedMethod", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
4320properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4321properties.Add(new ConfigurationProperty("ID", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
4345properties.Add(new ConfigurationProperty("name", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4346properties.Add(new ConfigurationProperty("typeLibID", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired));
4347properties.Add(new ConfigurationProperty("typeLibVersion", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired));
4348properties.Add(new ConfigurationProperty("typeDefID", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
4448properties.Add(new ConfigurationProperty("findValue", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4475properties.Add(new ConfigurationProperty("customCertificateValidatorType", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4506properties.Add(new ConfigurationProperty("httpHelpPageBinding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4507properties.Add(new ConfigurationProperty("httpHelpPageBindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4508properties.Add(new ConfigurationProperty("httpsHelpPageBinding", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4509properties.Add(new ConfigurationProperty("httpsHelpPageBindingConfiguration", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4540properties.Add(new ConfigurationProperty(ConfigurationStrings.HttpGetBinding, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4541properties.Add(new ConfigurationProperty(ConfigurationStrings.HttpsGetBinding, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4542properties.Add(new ConfigurationProperty(ConfigurationStrings.HttpGetBindingConfiguration, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4543properties.Add(new ConfigurationProperty(ConfigurationStrings.HttpsGetBindingConfiguration, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4592properties.Add(new ConfigurationProperty("groupName", typeof(System.String), "default", null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4622properties.Add(new ConfigurationProperty("realm", typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.None));
4671properties.Add(new ConfigurationProperty("name", typeof(System.String), null, null, new System.Configuration.StringValidator(1, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired));
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (3)
57protected override bool SerializeToXmlElement(XmlWriter writer, String elementName)
66WriteComment(String.Format(CultureInfo.InvariantCulture, "<wsdl:binding name='{0}'>", this.wsdlBinding.Name), indent, writer, settings);
77WriteComment(String.Format(CultureInfo.InvariantCulture, "<wsdl:operation name='{0}'>", operation.Name), indent, writer, settings);
System\ServiceModel\Description\ClientClassGenerator.cs (10)
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Invalid client generation constructor table initialization")));
185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Invalid client generation constructor table initialization")));
424if (String.Compare(operationContext.SyncMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
428if (String.Compare(operationContext.BeginMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
430if (String.Compare(operationContext.EndMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
435if (String.Compare(operationContext.TaskMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
445if (String.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
450if (String.Compare(p.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
937String.Compare(interfaceName, 0, Strings.InterfaceTypePrefix, 0, Strings.InterfaceTypePrefix.Length, StringComparison.Ordinal) == 0 &&
996return method.ReturnType == null || String.Compare(method.ReturnType.BaseType, typeof(void).FullName, StringComparison.Ordinal) == 0;
System\ServiceModel\Description\OperationGenerator.cs (10)
423Fx.Assert(System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(name), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", name));
488if (String.Compare(name, methodName, StringComparison.OrdinalIgnoreCase) == 0)
517if (String.Compare(parameter.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
590Fx.Assert(String.IsNullOrEmpty(typeName) || System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(typeName), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", typeName));
913if (!String.Equals(parent.Request.Body.WrapperName, defaultName.EncodedName, StringComparison.Ordinal))
921if (!String.Equals(parent.Response.Body.WrapperName, TypeLoader.GetBodyWrapperResponseName(defaultName).EncodedName, StringComparison.Ordinal))
950return overrideValue == null || String.Equals(overrideValue, defaultValue, StringComparison.Ordinal);
997return String.Compare(a.Name, b.Name, StringComparison.Ordinal);
1037Fx.Assert(String.Format(System.Globalization.CultureInfo.InvariantCulture, "Attribute generation is not supported for argument type {0}", type));
System\ServiceModel\Description\ServiceMetadataExtension.cs (23)
27static readonly Uri EmptyUri = new Uri(String.Empty, UriKind.Relative);
827if (String.Compare(query, HealthQueryString, StringComparison.OrdinalIgnoreCase) != 0)
848if (String.IsNullOrEmpty(query))
892throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Bad object in HttpGetImpl docFromQuery table")));
898throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Bad object in HttpGetImpl docFromQuery table")));
909if (String.Compare(query, WsdlQueryString, StringComparison.OrdinalIgnoreCase) == 0)
936if (String.Compare(query, SingleWsdlQueryString, StringComparison.OrdinalIgnoreCase) == 0)
993if (String.Compare(q, start, WsdlQueryString, 0, WsdlQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0)
995else if (String.Compare(q, start, XsdQueryString, 0, XsdQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0)
997else if (String.Compare(q, start, SingleWsdlQueryString, 0, SingleWsdlQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0)
999else if (String.Compare(q, start, HealthQueryString, 0, HealthQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0)
1001else if (parent.HelpPageEnabled && (String.Compare(q, start, DiscoQueryString, 0, DiscoQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0))
1197if (!String.IsNullOrEmpty(import.Location)) continue;
1199WsdlNS.ServiceDescription targetDoc = this.wsdls[import.Namespace ?? String.Empty];
1221if (external == null || !String.IsNullOrEmpty(external.SchemaLocation)) continue;
1225foreach (XmlSchema targetXsd in this.xsds.Schemas(targetNs ?? String.Empty))
1278if (!String.IsNullOrEmpty(wsdl.Name))
1380if (!String.IsNullOrEmpty(this.discoUrl))
1387page.WriteTitle(!String.IsNullOrEmpty(this.serviceName) ? SR.GetString(SR.SFxDocExt_MainPageTitle, this.serviceName) : SR.GetString(SR.SFxDocExt_MainPageTitleNoServiceName));
1389if (!String.IsNullOrEmpty(this.errorMessage))
1630writer.WriteRaw(String.Format(CultureInfo.InvariantCulture,
1635writer.WriteRaw(String.Format(CultureInfo.InvariantCulture,
1892text = String.Empty;
System\ServiceModel\Security\SecurityUtils.cs (17)
363anonymousIdentity = SecurityUtils.CreateIdentity(String.Empty);
445identity = EndpointIdentity.CreateSpnIdentity(String.Format(CultureInfo.InvariantCulture, "host/{0}", DnsCache.MachineName));
745spn = String.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.IdentityClaim.Resource);
999return String.Empty;
1052return str.Length <= 0 ? String.Empty : str.ToString();
1058if (String.IsNullOrEmpty(value))
1061if (String.IsNullOrEmpty(value))
1064if (String.IsNullOrEmpty(value))
1067if (String.IsNullOrEmpty(value))
1075str.Append(String.IsNullOrEmpty(value) ? "<x509>" : value);
1097str.Append(String.IsNullOrEmpty(name) ? "<null>" : name);
1961String.IsNullOrEmpty(UnsafeGetUsername(credential)) &&
1962String.IsNullOrEmpty(UnsafeGetDomain(credential)) &&
1963String.IsNullOrEmpty(UnsafeGetPassword(credential))
2315if ((Environment.OSVersion.ServicePack == string.Empty) || String.Equals(Environment.OSVersion.ServicePack, ServicePack1, StringComparison.OrdinalIgnoreCase) || String.Equals(Environment.OSVersion.ServicePack, ServicePack2, StringComparison.OrdinalIgnoreCase))
2327if (Environment.OSVersion.ServicePack == string.Empty || String.Equals(Environment.OSVersion.ServicePack, ServicePack1, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (17)
23static readonly string wsidPPIClaim = String.Format(CultureInfo.InvariantCulture, "{0}/claims/privatepersonalidentifier", wsidNamespace);
277if (String.IsNullOrEmpty(optional))
542string encryptionAlgorithm = String.Empty;
545string canonicalizationAlgoritm = String.Empty;
920sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "TokenType: {0}", this.tokenType == null ? "null" : this.tokenType));
921sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", this.keyType.ToString()));
922sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeySize: {0}", this.keySize.ToString(CultureInfo.InvariantCulture)));
923sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", this.issuerAddress == null ? "null" : this.issuerAddress.ToString()));
924sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", this.issuerMetadataAddress == null ? "null" : this.issuerMetadataAddress.ToString()));
925sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", this.defaultMessageSecurityVersion == null ? "null" : this.defaultMessageSecurityVersion.ToString()));
926sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", this.useStrTransform.ToString()));
930sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
934sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
938sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
945sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
949sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
952sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", this.claimTypeRequirements[i].ClaimType, this.claimTypeRequirements[i].IsOptional));
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenHelper.cs (2)
23string endpointId = String.Empty;
85return new SessionSecurityToken(claimsPrincipal, sct.ContextId, sct.Id, String.Empty, sct.GetKeyBytes(), endpointId, sct.ValidFrom, sct.ValidTo, sct.KeyGeneration, sct.KeyEffectiveTime, sct.KeyExpirationTime, sctAuthPolicy, new Uri(version.Namespace.Value));
Cache\OutputCache.cs (19)
136private static OutputCacheProvider GetFragmentProvider(String providerName) {
289private static CachedVary UtcAdd(String key, CachedVary cachedVary) {
294private static ControlCachedVary UtcAdd(String key, ControlCachedVary cachedVary) {
379String kernelCacheUrl = cachedRawResponse._kernelCacheUrl;
430internal static void ThrowIfProviderNotFound(String providerName) {
469if (String.Compare(dep.GetUniqueID(), 0, depKey, idStartIndex, idLength, StringComparison.Ordinal) == 0) {
516internal static Object Get(String key) {
550internal static Object GetFragment(String key, String providerName) {
586internal static void Remove(String key, HttpContext context) {
617internal static void RemoveFromProvider(String key, String providerName) {
638internal static void RemoveFragment(String key, String providerName) {
653internal static void InsertFragment(String cachedVaryKey, ControlCachedVary cachedVary,
654String fragmentKey, PartialCachingCacheEntry fragment,
657String providerName) {
765internal static void InsertResponse(String cachedVaryKey, CachedVary cachedVary,
766String rawResponseKey, CachedRawResponse rawResponse,
CachedPathData.cs (11)
183if (!String.IsNullOrEmpty(physicalFilePath)) {
246if (!String.IsNullOrEmpty(physicalPath)) {
403throw new HttpException(404, String.Empty);
548internal void ValidatePath(String physicalPath) {
549if (String.IsNullOrEmpty(_physicalPath) && String.IsNullOrEmpty(physicalPath)) {
552if (!String.IsNullOrEmpty(_physicalPath) && !String.IsNullOrEmpty(physicalPath)) {
555if (0 == String.Compare(_physicalPath, 0, physicalPath, 0, physicalPath.Length, StringComparison.OrdinalIgnoreCase)) {
562&& (0 == String.Compare(_physicalPath, 0, physicalPath, 0, physicalPath.Length, StringComparison.OrdinalIgnoreCase))) {
569&& (0 == String.Compare(_physicalPath, 0, physicalPath, 0, _physicalPath.Length, StringComparison.OrdinalIgnoreCase))) {
Compilation\BuildManager.cs (28)
99internal static String WebHashFilePath {
223private Dictionary<String, AssemblyReferenceInfo> _topLevelAssembliesIndexTable;
224private IDictionary<String, AssemblyReferenceInfo> TopLevelAssembliesIndexTable { get { return _topLevelAssembliesIndexTable; } }
226private Dictionary<String, String> _generatedFileTable;
227internal static Dictionary<String, String> GenerateFileTable {
230_theBuildManager._generatedFileTable = new Dictionary<String, String>(StringComparer.OrdinalIgnoreCase);
380if (String.IsNullOrEmpty(dependency)) {
537String.IsNullOrEmpty(AppSettings.PortableCompilationOutputSnapshotType)) {
736if (String.Compare(assemblyName, CodeDirectoryAssemblyName,
738String.Compare(assemblyName, ResourcesDirectoryAssemblyName,
740String.Compare(assemblyName, WebRefDirectoryAssemblyName,
742String.Compare(assemblyName, GlobalAsaxAssemblyName,
838Debug.Assert(!String.IsNullOrEmpty(path));
839Debug.Assert(!assemblies.Any(String.IsNullOrEmpty));
905string message = (e.InnerException != null ? e.InnerException.Message : String.Empty);
950if (attribute.Type != null && !String.IsNullOrEmpty(attribute.MethodName) && attribute.Type.Assembly == assembly) {
960(attribute.Type != null ? attribute.Type.FullName : String.Empty),
971Debug.Assert(!String.IsNullOrEmpty(methodName));
1190new Dictionary<String, AssemblyReferenceInfo>(StringComparer.OrdinalIgnoreCase);
1568private const String CircularReferenceCheckerSlotName = "CircRefChk";
1849foreach (String dependency in dependencies) {
1867private const String BatchCompilationSlotName = "BatchCompileChk";
2077else if (String.Compare(virtualCodeDir.VirtualPathString, 0,
2087else if (String.Compare(virtualCodeDir.FileName, HttpRuntime.LocalResourcesDirectoryName,
3297String normalizedName = GetNormalizedCodeAssemblyName(name);
Configuration\BrowserCapabilitiesCodeGenerator.cs (18)
241ServiceController controller = services.SingleOrDefault(s => String.Equals(s.ServiceName, "W3SVC", StringComparison.OrdinalIgnoreCase));
271ProcessBrowserFiles(false, String.Empty);
392if (String.Compare(nodeName, "Default", StringComparison.OrdinalIgnoreCase) == 0)
396if (String.Compare(nodeName, treeRootName, StringComparison.OrdinalIgnoreCase) == 0) {
424foreach (String filePath in _browserFileList) {
509ProcessCustomBrowserFiles(false, String.Empty);
662while(!String.Equals(directory.Parent.Name, browserDirInfo.Name)) {
921new CodePropertyReferenceExpression(new CodeTypeReferenceExpression(typeof(String)), "Empty"),
941new CodePropertyReferenceExpression(new CodeTypeReferenceExpression(typeof(String)), "Empty"),
971foreach(String header in _headers) {
983GenerateProcessMethod(bd, ctd, String.Empty);
1138CodeMethodReferenceExpression emptyCheckMethod = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(String)), "IsNullOrEmpty");
1183_headers.Add(String.Empty);
1191new CodeTypeReferenceExpression(typeof(String)), "Empty") }));
1341_headers.Add(String.Empty);
1344new CodePropertyReferenceExpression(new CodeTypeReferenceExpression(typeof(String)), "Empty") })));
1457return GenerateTrackedSingleProcessCall(stmts, bd, cmm, String.Empty);
1479GenerateSingleProcessCall(bd, cmm, String.Empty);
Configuration\Compiler.cs (8)
31new ConfigurationProperty("language", typeof(string), String.Empty, ConfigurationPropertyOptions.None );
33new ConfigurationProperty("extension", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
35new ConfigurationProperty("type", typeof(string), String.Empty, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsTypeStringTransformationRequired);
44new ConfigurationProperty(compilerOptionsAttribName, typeof(string), String.Empty, ConfigurationPropertyOptions.None);
61public Compiler(String compilerOptions, String extension, String language, String type, int warningLevel)
Configuration\GlobalizationSection.cs (13)
46new ConfigurationProperty("fileEncoding", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
48new ConfigurationProperty("culture", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
50new ConfigurationProperty("uiCulture", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
56new ConfigurationProperty("resourceProviderFactoryType", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
65private String cultureCache = null;
66private String uiCultureCache = null;
231if (_resourceProviderFactoryType == null && !String.IsNullOrEmpty(ResourceProviderFactoryType)) {
270if (!String.IsNullOrEmpty((string)base[_propResponseEncoding]))
279if (!String.IsNullOrEmpty((string)base[_propResponseHeaderEncoding])) {
291if (!String.IsNullOrEmpty((string)base[_propRequestEncoding])) {
303if (!String.IsNullOrEmpty((string)base[_propFileEncoding])) {
314if (!String.IsNullOrEmpty((string)base[_propCulture])) {
326if (!String.IsNullOrEmpty((string)base[_propUICulture])) {
Configuration\IAssemblyCache.cs (4)
15int UninstallAssembly(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] String pszAssemblyName, IntPtr pvReserved, out uint pulDisposition);
17int QueryAssemblyInfo(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] String pszAssemblyName, IntPtr pAsmInfo);
19int CreateAssemblyCacheItem(uint dwFlags, IntPtr pvReserved, out IAssemblyCacheItem ppAsmItem, [MarshalAs(UnmanagedType.LPWStr)] String pszAssemblyName);
23int InstallAssembly(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] String pszManifestFilePath, IntPtr pvReserved);
Configuration\PagesSection.cs (12)
124new ConfigurationProperty("masterPageFile", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
126new ConfigurationProperty("theme", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
138new ConfigurationProperty("styleSheetTheme", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
140new ConfigurationProperty("pageParserFilterType", typeof(string), String.Empty, ConfigurationPropertyOptions.None);
421if (_pageParserFilterType == null && !String.IsNullOrEmpty(PageParserFilterType)) {
465String masterPageFile = MasterPageFile;
467if (!String.IsNullOrEmpty(masterPageFile)) {
508masterPageFile = String.Empty;
533if ((!String.IsNullOrEmpty(themeName)) && (!Util.ThemeExists(themeName))) {
561if (!String.IsNullOrEmpty(styleSheetThemeName) &&
720if (!String.IsNullOrEmpty(tpi.TagName)) {
734else if (!String.IsNullOrEmpty(tpi.Namespace)) {
Configuration\RuleSettings.cs (20)
43String.Empty,
49String.Empty,
55String.Empty,
85String.Empty,
104public RuleSettings(String name, String eventName, String provider)
111public RuleSettings(String name, String eventName, String provider, String profile, int minInstances, int maxLimit, TimeSpan minInterval)
119public RuleSettings(String name, String eventName, String provider, String profile, int minInstances, int maxLimit, TimeSpan minInterval, string custom)
136public String Name {
146public String EventName {
156public String Custom {
166public String Profile {
176public String Provider {
ErrorFormatter.cs (43)
155private Label CreateLabelFromText(String text) {
210String miscTitle = MiscSectionTitle;
211if (!String.IsNullOrEmpty(miscTitle)) {
219foreach (String contentLine in miscContent) {
226String sourceFilePath = GetDisplayPath();
227if (!String.IsNullOrEmpty(sourceFilePath)) {
228String text = SR.GetString(SR.Error_Formatter_Source_File) + " " + sourceFilePath;
240foreach (String stack in stackTrace) {
270return String.Empty;
272return ((browser != null) ? browser["preferredRenderingType"] : String.Empty);
291if (String.Compare(context.Response.ContentType, 0,
310errorContent.Append(String.Format(CultureInfo.CurrentCulture, errorBeginTemplate, errorHeader, ErrorTitle));
317String miscTitle = MiscSectionTitle;
326foreach (String contentLine in miscContent) {
333String sourceFilePath = GetDisplayPath();
334if (!String.IsNullOrEmpty(sourceFilePath)) {
335String text = SR.GetString(SR.Error_Formatter_Source_File) + " " + sourceFilePath;
347foreach (String stack in stackTrace) {
456sb.Append(String.Format(CultureInfo.InvariantCulture, startExpandableBlock, "additionalConfigurationErrors",
543if (!String.IsNullOrEmpty(fusionLog)) {
727protected virtual String PostMessage {
785if (String.IsNullOrEmpty(linePragma))
843protected String _message;
844protected String _postMessage;
849internal UnhandledErrorFormatter(Exception e, String message, String postMessage) {
877if (!String.IsNullOrEmpty(msg))
916String errDesc = SR.GetString(SR.Unauthorized_Err_Desc1);
928String details = ((HostingEnvironmentException)_initialException).Details;
930if (!String.IsNullOrEmpty(details)) {
1052string ns = String.Empty;
1092sb.Append((k != 0 ? ", " : String.Empty) + arrParams[k].ParameterType.Name + " " +
1154protected override String PostMessage {
1261String extMessage = String.Empty;
1330String detailsTitle = SR.GetString(SR.Generic_Err_Details_Title);
1338String detailsDesc = SR.GetString(
1359String noteTitle = SR.GetString(SR.Generic_Err_Notes_Title);
1367String notesDesc = SR.GetString(SR.Generic_Err_Notes_Desc);
1503String linestr = i.ToString("G", CultureInfo.CurrentCulture);
1747sb.Append(String.Format(CultureInfo.CurrentCulture, startExpandableBlock, "compilerOutputDiv",
1764sb.Append(String.Format(CultureInfo.CurrentCulture, startExpandableBlock, "dynamicCodeDiv",
1931sb.Append(String.Format(CultureInfo.InvariantCulture, startExpandableBlock, "additionalConfigErrorInfo",
Handlers\AssemblyResourceLoader.cs (26)
100if (!String.IsNullOrEmpty(handlerTypeString)) {
119return String.Format(CultureInfo.InvariantCulture, _webResourceUrl + "?d={0}&t={1}",
124return String.Format(CultureInfo.InvariantCulture, _webResourceUrl + "?d={0}&t={1}",
200if (String.Equals(resourceName, "WebForms.js", StringComparison.Ordinal)) {
209else if (String.Equals(resourceName, "WebUIValidation.js", StringComparison.Ordinal)) {
218else if (String.Equals(resourceName, "SmartNav.htm", StringComparison.Ordinal)) {
227else if (String.Equals(resourceName, "SmartNav.js", StringComparison.Ordinal)) {
245if ((wra != null) && String.Equals(wra.WebResource, resourceName, StringComparison.Ordinal)) {
258return String.Format(CultureInfo.InvariantCulture,
270if (!String.IsNullOrEmpty(cdnPath)) {
320if (!String.IsNullOrEmpty(definition.ResourceName)) {
342if (String.IsNullOrEmpty(path)) {
344if (String.IsNullOrEmpty(path)) {
348if (!secureConnection || String.IsNullOrEmpty(definition.CdnDebugPath)) {
351if (String.IsNullOrEmpty(path)) {
359if (String.IsNullOrEmpty(path)) {
363if (!secureConnection || String.IsNullOrEmpty(definition.CdnPath)) {
366if (String.IsNullOrEmpty(path)) {
378if (String.IsNullOrEmpty(path)) {
391if (!String.IsNullOrEmpty(path)) {
473if (String.Equals(requestPath, webResourceHandlerUrl, StringComparison.OrdinalIgnoreCase)) {
517if (String.IsNullOrEmpty(encryptedData)) {
528if (String.IsNullOrEmpty(assemblyName)) {
533if (String.IsNullOrEmpty(resourceName)) {
594string contentType = String.Empty;
672if (String.Equals(embeddedResourceName, resourceName, StringComparison.Ordinal)) {
Hosting\AppDomainFactory.cs (15)
44String module,
46String typeName,
48String appId,
50String appPath,
52String strUrlOfAppOrigin,
96public Object Create(String module, String typeName, String appId, String appPath,
97String strUrlOfAppOrigin, int iZone) {
117Object Create([In, MarshalAs(UnmanagedType.BStr)] String appId,
118[In, MarshalAs(UnmanagedType.BStr)] String appPath);
146public Object Create(String appId, String appPath) {
193internal static String ConstructSimpleAppName(string virtPath, bool isDevEnvironment) {
Hosting\ApplicationManager.cs (56)
209string appId = String.Concat(virtualPath.VirtualPathString, physicalPath);
211if (!String.IsNullOrEmpty(siteName)) {
212appId = String.Concat(appId, siteName);
232public IRegisteredObject CreateObject(String appId, Type type, string virtualPath, string physicalPath, bool failIfExists) {
237public IRegisteredObject CreateObject(String appId, Type type, string virtualPath, string physicalPath,
259internal IRegisteredObject CreateObjectInternal(String appId, Type type, IApplicationHost appHost, bool failIfExists) {
276String appId,
297String physicalPath,
300out String appId,
307String physicalPath,
310out String appId,
327String physicalPath,
332out String appId,
379public IRegisteredObject GetObject(String appId, Type type) {
443internal void RemoveFromTableIfRuntimeExists(String appId, Type runtimeType) {
471public void StopObject(String appId, Type type) {
508public void ShutdownApplication(String appId) {
732internal void HostingEnvironmentShutdownComplete(String appId, IApplicationHost appHost) {
747internal void HostingEnvironmentShutdownInitiated(String appId, HostingEnvironment env) {
826String appId,
828String physicalPath) {
846private HostingEnvironment GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) {
871String appId,
886String appId,
890String physicalPath = appHost.GetPhysicalPath();
894String domainId = ConstructAppDomainId(appId);
895String appName = (StringUtil.GetStringHashCode(String.Concat(appId.ToLower(CultureInfo.InvariantCulture),
1075if (cacheConfig != null && cacheConfig.DefaultProvider != null && !String.IsNullOrWhiteSpace(cacheConfig.DefaultProvider)) {
1114if (trustSection == null || String.IsNullOrEmpty(trustSection.Level)) {
1219appDomain.SetData((String)e.Key, (String)e.Value);
1246String module = hostType.Module.Assembly.FullName;
1247String typeName = hostType.FullName;
1382throw new ConfigurationErrorsException(SR.GetString(SR.Unable_to_get_policy_file, trustSection.Level), String.Empty, 0);
1384String configFile = (String)securityPolicySection.TrustLevels[trustSection.Level].PolicyFileExpanded;
1389String appDir = FileUtil.RemoveTrailingDirectoryBackSlash(physicalPath);
1390String appDirUrl = HttpRuntime.MakeFileUrl(appDir);
1398if (compilationSection != null && !String.IsNullOrEmpty(compilationSection.TempDirectory)) {
1450String simpleAppName = System.Web.Hosting.AppManagerAppDomainFactory.ConstructSimpleAppName(
1452String binDir = Path.Combine(tempDirectory, simpleAppName);
1454String binDirUrl = HttpRuntime.MakeFileUrl(binDir);
1456String originUrl = trustSection.OriginUrl;
1459String strFileData = reader.ReadToEnd();
1465originUrl = String.Empty;
1467String gacLocation = null;
1473gacLocation = String.Empty;
1639if (!String.IsNullOrEmpty(HttpRuntime.HostSecurityPolicyResolverType) && hostSecurityPolicyResolver == null) {
1667private static void PopulateDomainBindings(String domainId, String appId, String appName,
1668String appPath, VirtualPath appVPath,
1707private static String ConstructAppDomainId(String id) {
1810return String.Equals(envVar, "1", StringComparison.Ordinal);
Hosting\IIS7WorkerRequest.cs (45)
62private String[][] _unknownRequestHeaders;
63private String[] _knownRequestHeaders;
151_pathTranslated = (pathTranslatedBufferSize <= 0) ? String.Empty : StringUtil.StringFromWCharPtr(pathTranslatedBuffer, pathTranslatedBufferSize);
177_pathInfo = String.Empty;
271string message = String.IsNullOrEmpty(eventData) ? String.Empty : eventData;
292string uri = String.Empty;
343return String.Empty;
394internal override String GetLocalPortAsString()
401String https = GetServerVariable("HTTPS");
405public override String GetFilePath() {
714public override String GetKnownRequestHeader(int index) {
745public override String GetUnknownRequestHeader(String name) {
759public override String[][] GetUnknownRequestHeaders() {
766public override String GetServerVariable(String name) {
780statusDescription = String.Empty;
797String statusDescription) {
810public override void SendKnownResponseHeader(int index, String value) {
817public override void SendUnknownResponseHeader(String name,
818String value) {
986internal override void TransmitFile(String filename, long offset, long length, bool isImpersonating) {
1244_knownRequestHeaders = new String[RequestHeaderMaximum];
1250String s = GetServerVariable("ALL_RAW");
1274String name = s.Substring(i, ci-i).Trim();
1289String value = s.Substring(ci+1, ni-ci-1).Trim();
1307_unknownRequestHeaders = new String[n][];
1311_unknownRequestHeaders[i] = new String[2];
1312_unknownRequestHeaders[i][0] = (String)headers[j++];
1313_unknownRequestHeaders[i][1] = (String)headers[j++];
1490if (String.IsNullOrEmpty(cacheUrl) || (!enableKernelCacheForVaryByStar && cacheUrl.IndexOf('?') != -1)) {
1940userName = String.Empty;
1943authType = String.Empty;
2270string userName = String.Empty;
2275string authType = String.Empty;
2280if ( String.IsNullOrEmpty(userName) )
2308internal bool IsUserInRole(String role) {
2381bool replaceQueryString = !String.IsNullOrEmpty(queryString);
2537public override String MapPath(String path)
2542public override String MachineConfigPath
2550public override String RootWebConfigPath
2558public override String MachineInstallDirectory
2595return String.Equals(GetServerVariableInternal("IIS_WEBSOCK"), "websockets", StringComparison.Ordinal);
Hosting\IProcessHostSupportFunctions.cs (11)
25[In, MarshalAs(UnmanagedType.LPWStr)] String appId,
26out String virtualPath,
27out String physicalPath,
28out String siteName,
29out String siteId);
34[In, MarshalAs(UnmanagedType.LPWStr)] String appId,
35[In, MarshalAs(UnmanagedType.LPWStr)] String virtualPath,
36out String physicalPath);
42[In, MarshalAs(UnmanagedType.LPWStr)] String appId);
47String GetAppHostConfigFilename();
52String GetRootWebConfigFilename();
Hosting\ISAPIWorkerRequest.cs (98)
140internal void Append(String s) {
184public override String ToString() {
302internal String[] GetDecodedTabSeparatedStrings(Encoding encoding, int numStrings, int numSkipStrings) {
309String[] ss = new String[numStrings];
328ss[iString] = String.Empty;
355ss[iString] = String.Empty;
608protected String _method;
609protected String _path;
610protected String _filePath;
611protected String _pathInfo;
612protected String _pathTranslated;
613protected String _appPath;
614protected String _appPathTranslated;
631private String[][] _unknownRequestHeaders;
632private String[] _knownRequestHeaders;
687private String[] ReadBasics(int[] contentInfo) {
704String[] ss = buf.GetDecodedTabSeparatedStrings(Encoding.Default, 6, 0);
719_knownRequestHeaders = new String[RequestHeaderMaximum];
725String s = GetServerVariable("ALL_RAW");
750String name = s.Substring(i, ci-i).Trim();
764String value = s.Substring(ci+1, ni-ci-1).Trim();
782_unknownRequestHeaders = new String[n][];
786_unknownRequestHeaders[i] = new String[2];
787_unknownRequestHeaders[i][0] = (String)headers[j++];
788_unknownRequestHeaders[i][1] = (String)headers[j++];
1022String[] basicStrings = ReadBasics(contentInfo);
1084public override String GetUriPath() {
1088public override String GetQueryString() {
1090return String.Empty;
1116public override String GetRawUrl() {
1117String qs = GetQueryString();
1119if (!String.IsNullOrEmpty(qs))
1125public override String GetHttpVerbName() {
1129public override String GetHttpVersion() {
1133public override String GetRemoteAddress() {
1137public override String GetRemoteName() {
1145public override String GetLocalAddress() {
1153internal override String GetLocalPortAsString() {
1157public override String GetServerName() {
1162String https = GetServerVariable("HTTPS");
1166public override String GetFilePath() {
1170public override String GetFilePathTranslated() {
1174public override String GetPathInfo() {
1178public override String GetAppPath() {
1182public override String GetAppPathTranslated() {
1237public override String GetKnownRequestHeader(int index) {
1260public override String GetUnknownRequestHeader(String name) {
1274public override String[][] GetUnknownRequestHeaders() {
1281public override void SendStatus(int statusCode, String statusDescription) {
1292public override void SendKnownResponseHeader(int index, String value) {
1311public override void SendUnknownResponseHeader(String name, String value) {
1373internal virtual MemoryBytes PackageFile(String filename, long offset64, long length64, bool isImpersonating) {
1411public override void SendResponseFromFile(String filename, long offset, long length) {
1483public override String MapPath(String path) {
1487public override String MachineConfigPath {
1493public override String RootWebConfigPath {
1499public override String MachineInstallDirectory {
1602internal void AppendLogParameter(String logParam) {
1631internal abstract int MapUrlToPathCore(String url, byte[] buffer, int size);
1634internal abstract int AppendLogParameterCore(String logParam);
1808internal override int MapUrlToPathCore(String url, byte[] buffer, int size) {
1828internal override int AppendLogParameterCore(String logParam) {
1836protected virtual String GetServerVariableCore(String name) {
1840String value = null;
1890private String GetAdditionalServerVar(int index) {
1897public override String GetServerVariable(String name) {
2054string message = String.IsNullOrEmpty(eventData) ? String.Empty : eventData;
2101public override String GetRawUrl() {
2126_pathInfo = String.Empty;
2243private String GetUnicodeServerVariable(String name) {
2244String value = null;
2257private String GetUnicodeServerVariable(int nameIndex) {
2258String value = null;
2271private String GetUnicodeServerVariable(String name, ServerVarCharBuffer buffer) {
2287private String GetUnicodeServerVariable(int nameIndex, ServerVarCharBuffer buffer) {
2501if (String.IsNullOrEmpty(cacheUrl) || (!enableKernelCacheForVaryByStar && cacheUrl.IndexOf('?') != -1)) {
2689String url, String method, String childHeaders,
2691bool addUserIndo, IntPtr token, String name, String authType,
2796private static String[] _serverVarNames =
2797new String[_numServerVars] {
2851String[] ss = buf.GetDecodedTabSeparatedStrings(Encoding.Default, _numServerVars-1, 1);
3030internal override int MapUrlToPathCore(String url, byte[] buffer, int size) {
3051internal override int AppendLogParameterCore(String logParam) {
3065public override String GetServerVariable(String name) {
3073return (String)_serverVars[name];
Hosting\ProcessHost.cs (33)
30String appId,
32String appPath,
35void ShutdownApplication([In, MarshalAs(UnmanagedType.LPWStr)] String appId);
73[In, MarshalAs(UnmanagedType.LPWStr)] String appId,
74[In, MarshalAs(UnmanagedType.LPWStr)] String protocolId,
78[In, MarshalAs(UnmanagedType.LPWStr)] String appId,
79[In, MarshalAs(UnmanagedType.LPWStr)] String protocolId,
84[In, MarshalAs(UnmanagedType.LPWStr)] String appId,
85[In, MarshalAs(UnmanagedType.LPWStr)] String protocolId,
93[In, MarshalAs(UnmanagedType.LPWStr)] String protocolId,
97[In, MarshalAs(UnmanagedType.LPWStr)] String protocolId,
102[In, MarshalAs(UnmanagedType.LPWStr)] String protocolId,
372string source = String.Empty;
397private Type GetAppDomainProtocolHandlerType(String protocolId) {
456public void StartProcessProtocolListenerChannel(String protocolId, IListenerChannelCallback listenerChannelCallback) {
499public void StopProcessProtocolListenerChannel(String protocolId, int listenerChannelId, bool immediate) {
526public void StopProcessProtocol(String protocolId, bool immediate) {
561public void StartAppDomainProtocolListenerChannel(String appId, String protocolId, IListenerChannelCallback listenerChannelCallback) {
615public void StopAppDomainProtocolListenerChannel(String appId, String protocolId, int listenerChannelId, bool immediate) {
648public void StopAppDomainProtocol(String appId, String protocolId, bool immediate) {
680public void StartApplication(String appId, String appPath, out Object runtimeInterface)
763public void ShutdownApplication(String appId) {
911if (String.IsNullOrEmpty(appPath)) {
931Debug.Assert( !String.IsNullOrEmpty(physicalPath), "!String.IsNullOrEmpty(physicalPath)");
965if (String.IsNullOrEmpty(context)) {
968if (String.IsNullOrEmpty(appId)) {
1035if (!stillEnabled || String.IsNullOrEmpty(preloadObjTypeName)) {
1177if (String.Equals(copiedError.Key, appId, StringComparison.OrdinalIgnoreCase)) {
1259return String.Empty;
Hosting\SimpleWorkerRequest.cs (44)
32private String _appVirtPath; // "/foo"
33private String _appPhysPath; // "c:\foo\"
34private String _page;
35private String _pathInfo;
36private String _queryString;
38private String _installDir;
49private String GetPathInternal(bool includePathInfo) {
50String s = _appVirtPath.Equals("/") ? ("/" + _page) : (_appVirtPath + "/" + _page);
67public override String GetUriPath() {
76public override String GetQueryString() {
85public override String GetRawUrl() {
86String qs = GetQueryString();
87if (!String.IsNullOrEmpty(qs))
97public override String GetHttpVerbName() {
105public override String GetHttpVersion() {
113public override String GetRemoteAddress() {
129public override String GetLocalAddress() {
153public override String GetFilePath() {
161public override String GetFilePathTranslated() {
162String path = _appPhysPath + _page.Replace('/', '\\');
171public override String GetPathInfo() {
172return (_pathInfo != null) ? _pathInfo : String.Empty;
179public override String GetAppPath() {
187public override String GetAppPathTranslated() {
196public override String GetServerVariable(String name) {
197return String.Empty;
204public override String MapPath(String path) {
208String mappedPath = null;
209String appPath = _appPhysPath.Substring(0, _appPhysPath.Length-1); // without trailing "\"
211if (String.IsNullOrEmpty(path) || path.Equals("/")) {
258public override String MachineInstallDirectory {
272public override void SendStatus(int statusCode, String statusDescription) {
279public override void SendKnownResponseHeader(int index, String value) {
286public override void SendUnknownResponseHeader(String name, String value) {
301public override void SendResponseFromFile(String filename, long offset, long length) {
374public SimpleWorkerRequest(String page, String query, TextWriter output): this() {
398public SimpleWorkerRequest(String appVirtualDir, String appPhysicalDir, String page, String query, TextWriter output): this() {
HttpApplication.cs (20)
1244private HttpHandlerAction GetHandlerMapping(HttpContext context, String requestType, VirtualPath path, bool useAppConfig) {
1282internal IHttpHandler MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, bool useAppConfig, bool convertNativeStaticFileModule) {
1318if(String.IsNullOrEmpty(type)) {
1356internal IHttpHandler MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, bool useAppConfig) {
1878String appMethodName = appMethod.Name;
1880String targetName = appMethodName.Substring(0, namePosIndex);
2226e.Data[System.Web.Management.WebThreadInformation.IsImpersonatingKey] = String.Empty;
2405String.Empty /*type*/,
2406String.Empty /*precondition*/,
2490String.Empty /*type*/,
2491String.Empty /*precondition*/,
2637if (!String.IsNullOrEmpty(culture)) {
2650if (!String.IsNullOrEmpty(uiCulture)) {
2828Debug.Assert(!String.IsNullOrEmpty(moduleName), "!String.IsNullOrEmpty(moduleName)");
2881string modulePrecondition = (cBstrModulePrecondition > 0) ? StringUtil.StringFromWCharPtr(pBstrModulePrecondition, cBstrModulePrecondition) : String.Empty;
2892if (!String.IsNullOrEmpty(moduleName) && !String.IsNullOrEmpty(moduleType)) {
3327if (!String.IsNullOrEmpty(configType)) {
HttpException.cs (13)
62public static HttpException CreateFromLastError(String message) {
78public HttpException(String message)
83internal HttpException(String message, Exception innerException, int code)
93public HttpException(String message, int hr)
105public HttpException(String message, Exception innerException)
116public HttpException(int httpCode, String message, Exception innerException)
127public HttpException(int httpCode, String message)
138public HttpException(int httpCode, String message, int hr)
278public HttpUnhandledException(String message)
322public HttpCompileException(String message, Exception innerException) : base(message, innerException) {
379string message = String.Format(CultureInfo.CurrentCulture, compileErrorFormat,
471public HttpParseException(String message, Exception innerException) : base(message, innerException) {
589public HttpRequestValidationException(String message, Exception innerException) : base(message, innerException) {
HttpRequest.cs (137)
74private String _httpMethod;
76private String _requestType;
78private String _rewrittenUrl;
83private String _queryStringText;
86private String _pathTranslated;
87private String _contentType;
89private String _clientTarget;
90private String[] _acceptTypes;
91private String[] _userLanguages;
181public HttpRequest(String filename, String url, String queryString) {
194internal HttpRequest(VirtualPath virtualPath, String queryString) {
224return (_clientTarget == null) ? String.Empty : _clientTarget;
308internal static String[] ParseMultivalueHeader(String s) {
341String[] strings = new String[n];
359else if (!(String.IsNullOrEmpty(this.QueryStringText))) {
375String contentType = this.ContentType;
429String h = _wr.GetKnownRequestHeader(i);
431if (!String.IsNullOrEmpty(h)) {
432String name = HttpWorkerRequest.GetKnownRequestHeaderName(i);
439String[][] hh = _wr.GetUnknownRequestHeaders();
451private static String ServerVariableNameFromHeader(String header) {
455private String CombineAllHeaders(bool asRaw) {
457return String.Empty;
464String h = _wr.GetKnownRequestHeader(i);
466if (!String.IsNullOrEmpty(h)) {
467String name;
484String[][] hh = _wr.GetUnknownRequestHeaders();
488String name = hh[i][0];
504internal String CalcDynamicServerVariable(DynamicServerVariable var) {
505String value = null;
512value = String.Empty;
518value = String.Empty;
537private void AddServerVariableToCollection(String name, DynamicServerVariable var) {
542private void AddServerVariableToCollection(String name, String value) {
544value = String.Empty;
549private void AddServerVariableToCollection(String name) {
585String clString = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentLength);
630String h = _wr.GetKnownRequestHeader(i);
631if (!String.IsNullOrEmpty(h))
635String[][] hh = _wr.GetUnknownRequestHeaders();
647internal static HttpCookie CreateCookieFromString(String s) {
709String s = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderCookie);
732String cookieString = s.Substring(i, j-i).Trim();
742String name = cookie.Name;
831private static String GetAttributeFromHeader(String headerValue, String attrName) {
872String attrValue = null;
908String postDataCharset = Headers["x-up-devcap-post-charset"];
909if (!String.IsNullOrEmpty(postDataCharset)) {
925String contentType = this.ContentType;
929String charSet = GetAttributeFromHeader(contentType, "charset");
1109String b = GetAttributeFromHeader(ContentType, "boundary");
1169public String HttpMethod {
1240public String RequestType {
1257public String ContentType {
1264_contentType = String.Empty;
1284String s = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentLength);
1361public String[] AcceptTypes {
1399public String Path {
1439internal String PathWithQueryString {
1441String qs = QueryStringText;
1442return (!String.IsNullOrEmpty(qs)) ? (Path + "?" + qs) : Path;
1504public String FilePath {
1602public String PathInfo {
1650return (pathInfoObject == null) ? String.Empty : pathInfoObject.VirtualPathString;
1662public String PhysicalPath {
1664String path = PhysicalPathInternal;
1670internal String PhysicalPathInternal {
1699public String ApplicationPath {
1719public String PhysicalApplicationPath {
1738public String UserAgent {
1755public String[] UserLanguages {
1800public String UserHostName {
1802String s = (_wr != null) ? _wr.GetRemoteName() : null;
1803if (String.IsNullOrEmpty(s))
1817public String UserHostAddress {
1834public String RawUrl {
1852String url;
1858String p = this.GetUnvalidatedPath();
1859String qs = this.QueryStringText;
1861if (!String.IsNullOrEmpty(qs))
1879internal String UrlInternal {
1882if (!String.IsNullOrEmpty(q))
1889if (!String.IsNullOrEmpty(serverAndPort)) {
1901String serverName = _wr.GetServerName();
1934if (!String.IsNullOrEmpty(q))
1941if (!String.IsNullOrEmpty(serverAndPort)) {
1953String serverName = _wr.GetServerName();
1968String r = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderReferer);
1970if (!String.IsNullOrEmpty(r)) {
1990internal String IfModifiedSince {
1999internal String IfNoneMatch {
2042public String this[String key] {
2044String s;
2067internal String QueryStringText {
2078_queryStringText = String.Empty;
2086_queryStringText = String.Empty;
2341if (wr == null || String.IsNullOrEmpty(logData)) {
2348if (String.IsNullOrEmpty(currentLogData)) {
2357if (String.IsNullOrEmpty(currentLogData)) {
2682return s.Replace("\0", String.Empty);
2752String key = collection.GetKey(i);
2759String val = collection.Get(i);
2761if (!String.IsNullOrEmpty(val))
2777String key = cc.GetKey(i);
2778String val = cc.Get(i).Value;
2780if (!String.IsNullOrEmpty(val))
2824public int[] MapImageCoordinates(String imageFieldName) {
2845public double[] MapRawImageCoordinates(String imageFieldName) {
2899public void SaveAs(String filename, bool includeHeaders) {
2918String qs = this.QueryStringText;
2919if (!String.IsNullOrEmpty(qs))
2960public String MapPath(String virtualPath) {
2964internal String MapPath(VirtualPath virtualPath) {
2979public String MapPath(string virtualPath, string baseVirtualDir, bool allowCrossAppMapping) {
2981if (String.IsNullOrEmpty(baseVirtualDir)) {
2994internal String MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, bool allowCrossAppMapping) {
3028internal void InternalRewritePath(VirtualPath newPath, String newQueryString, bool rebaseClientPath) {
3058if (!String.IsNullOrEmpty(q))
3068String newQueryString, bool setClientFilePath) {
3096if (!String.IsNullOrEmpty(q))
3108String newPath = (_path != null && _path.VirtualPathString != null) ? _path.VirtualPathString : String.Empty;
3113internal String RewrittenUrl {
3122internal void SynchronizeServerVariable(String name, String value) {
3135internal void SynchronizeHeader(String name, String value) {
HttpResponse.cs (73)
35public delegate String HttpResponseSubstitutionCallback(HttpContext context);
62private String _statusDescription;
64private String _contentType = "text/html";
65private String _charSet;
68private String _redirectLocation;
125internal static readonly String RedirectQueryStringVariable = "__redir";
126internal static readonly String RedirectQueryStringValue = "1";
127internal static readonly String RedirectQueryStringAssignment = RedirectQueryStringVariable + "=" + RedirectQueryStringValue;
129private static readonly String _redirectQueryString = "?" + RedirectQueryStringAssignment;
130private static readonly String _redirectQueryStringInline = RedirectQueryStringAssignment + "&";
231foreach(String key in responseHeaders)
339String versionHeader = null;
372if (!String.IsNullOrEmpty(versionHeader)) {
393String versionHeader = null;
411if (!String.IsNullOrEmpty(versionHeader)) {
465String contentType = AppendCharSetToContentType( _contentType );
475String newContentType = contentType;
482String charset = Charset;
628String protocol = _wr.GetHttpVersion();
790internal String SetupKernelCaching(String originalCacheUrl) {
941public void AddFileDependency(String filename) {
1173if ((globConfig != null) && (!String.IsNullOrEmpty(globConfig.UICulture))) {
1257if (ce != null && !String.IsNullOrEmpty(ce.Filename))
1373String redirect = (customErrorsSetting != null) ? customErrorsSetting.GetRedirectString(code) : null;
1548public String StatusDescription {
1630internal String GetHttpHeaderContentEncoding() {
1658public String ContentType {
1679public String Charset {
1694_charSet = String.Empty; // to differentiate between not set (default) and empty chatset
1891public String RedirectLocation {
1948public void Pics(String value) {
2005public void AppendHeader(String name, String value) {
2276public void AppendToLog(String param) {
2288public void Redirect(String url) {
2295public void Redirect(String url, bool endResponse) {
2326if (String.IsNullOrEmpty(destinationUrl)) {
2359public void RedirectPermanent(String url) {
2368public void RedirectPermanent(String url, bool endResponse) {
2372internal void Redirect(String url, bool endResponse, bool permanent) {
2465url = String.Concat(url, _redirectQueryString);
2477internal RedirectToErrorPageStatus RedirectToErrorPage(String url, CustomErrorsRedirectMode redirectMode) {
2478const String qsErrorMark = "aspxerrorpath";
2481if (String.IsNullOrEmpty(url))
2554String pathOverride, NameValueCollection requestHeaders,
2559String userName, userAuthType;
2565userName = String.Empty;
2566userAuthType = String.Empty;
2570String path = Request.RewrittenUrl; // null is ok
2577String headers = null;
2635public void Write(String s) {
2727private String GetNormalizedFilename(String fn) {
2741public void WriteFile(String filename) {
2759public void WriteFile(String filename, bool readIntoMemory) {
2843private void ValidateFileRange(String filename, long offset, long length) {
2874public void WriteFile(String filename, long offset, long size) {
3040String descr = "OK";
3071public void AddHeader(String name, String value) {
3180if (String.IsNullOrEmpty(value)) {
3285internal String RemoveAppPathModifier(string virtualPath) {
3286if (String.IsNullOrEmpty(_appPathModifier))
3299return !String.IsNullOrEmpty(_appPathModifier);
3303private String ConvertToFullyQualifiedRedirectUrlIfRequired(String url) {
3315private String UrlEncodeIDNSafe(String url) {
3337private String UrlEncodeRedirect(String url) {
3430String contentType = AppendCharSetToContentType(_contentType);
3609if (String.IsNullOrEmpty(item)) {
HttpRuntime.cs (59)
121private static String s_installDirectory;
135String installDir = null;
150String fullPath = installDir + Path.DirectorySeparatorChar + ModName.ENGINE_FULL_NAME;
212private String _shutDownStack;
213private String _shutDownMessage;
246private String _tempDir;
247private String _codegenDir;
248private String _appDomainAppId;
249private String _appDomainAppPath;
251private String _appDomainId;
468if (trustSection == null || String.IsNullOrEmpty(trustSection.Level)) {
886if (compilationSection != null && !String.IsNullOrEmpty(compilationSection.TempDirectory)) {
1282throw new HttpException(503, String.Empty);
1289throw new HttpException(404, String.Empty);
1329if (!String.IsNullOrEmpty(globConfig.Culture) &&
1333if (!String.IsNullOrEmpty(globConfig.UICulture) &&
2278if (String.IsNullOrEmpty(stackTrace) && !BuildManagerHost.InClientBuildManager) {
2326internal static void OnConfigChange(String message) {
2332internal static void SetShutdownReason(ApplicationShutdownReason reason, String message) {
2340internal static void SetShutdownMessage(String message) {
2660if (String.IsNullOrEmpty(path))
2712internal static void CheckAspNetHostingPermission(AspNetHostingPermissionLevel level, String errorMessageId) {
2822String path = AspInstallDirectoryInternal;
2855String path = AspClientScriptPhysicalPathInternal;
2886String path = ClrInstallDirectoryInternal;
2903String path = MachineConfigurationDirectoryInternal;
2926public static String CodegenDir {
2928String path = CodegenDirInternal;
2946public static String AppDomainAppId {
2961public static String AppDomainAppPath {
2976public static String AppDomainAppVirtualPath {
2984internal static String AppDomainAppVirtualPathString {
2996internal static bool IsPathWithinAppRoot(String path) {
3007public static String AppDomainId {
3023public static String BinDirectory {
3025String path = BinDirectoryInternal;
3068private static String GetAppDomainString(String key) {
3071return x as String;
3074internal static void AddAppDomainTraceMessage(String message) {
3075const String appDomainTraceKey = "ASP.NET Domain Trace";
3077String m = d.GetData(appDomainTraceKey) as String;
3136throw new ConfigurationErrorsException(SR.GetString(SR.Unable_to_get_policy_file, trustSection.Level), String.Empty, 0);
3143String file = null;
3146file = (String)securityPolicySection.TrustLevels[trustSection.Level].LegacyPolicyFileExpanded;
3149file = (String)securityPolicySection.TrustLevels[trustSection.Level].PolicyFileExpanded;
3241private static PolicyLevel CreatePolicyLevel(String configFile, String appDir, String binDir, String strOriginUrl, out bool foundGacToken) {
3245String strFileData = reader.ReadToEnd();
3256strOriginUrl = String.Empty;
3269gacLocation = String.Empty;
3291String file = (String)securityPolicySection.TrustLevels[trustSection.Level].PolicyFileExpanded;
3325internal static String MakeFileUrl(String path) {
3330internal static String GetGacLocation() {
httpserverutility.cs (24)
355throw new HttpException(404, String.Empty);
466queryStringOverride = String.Empty;
512error = new HttpException(404, String.Empty);
517error = new HttpException(404, String.Empty);
774String qs = null;
777qs = (iqs < path.Length-1) ? path.Substring(iqs+1) : String.Empty;
821internal static void ExecuteLocalRequestAndCaptureResponse(String path, TextWriter writer,
825String.Empty);
1100public static String HtmlEncode(String s) {
1111public static String HtmlEncode(object value) {
1132public static void HtmlEncode(String s, TextWriter output) {
1142public static String HtmlAttributeEncode(String s) {
1154public static void HtmlAttributeEncode(String s, TextWriter output) {
1181internal static String FormatPlainTextAsHtml(String s) {
1193internal static void FormatPlainTextAsHtml(String s, TextWriter output) {
1350internal static String UrlEncodeNonAscii(string str, Encoding e) {
1513internal static String FormatHttpDateTime(DateTime dt) {
1519internal static String FormatHttpDateTimeUtc(DateTime dt) {
1523internal static String FormatHttpCookieDateTime(DateTime dt) {
1533public static String JavaScriptStringEncode(string value) {
1537public static String JavaScriptStringEncode(string value, bool addDoubleQuotes) {
HttpServerVarsCollection.cs (43)
52internal void AddStatic(String name, String value) {
54value = String.Empty;
60internal void AddDynamic(String name, DynamicServerVariable var) {
65private String GetServerVar(Object e) {
104private String GetSimpleServerVar(String name) {
177public override void Add(String name, String value) {
186public override String Get(String name) {
188String value = GetSimpleServerVar(name);
199if (String.IsNullOrEmpty(var)) {
210public override String[] GetValues(String name) {
211String s = Get(name);
212return(s != null) ? new String[1] { s} : null;
216public override void Set(String name, String value) {
228internal void SetNoDemand(String name, String value) {
230value = String.Empty;
239private void SynchronizeHeader(String name, String value) {
258internal void SynchronizeServerVariable(String name, String value, bool ensurePopulated = true) {
284private void SetServerVariableManagedOnly(String name, String value) {
303public override void Remove(String name) {
315internal void RemoveNoDemand(String name) {
324public override String Get(int index) {
329public override String[] GetValues(int index) {
330String s = Get(index);
331return(s != null) ? new String[1] { s} : null;
334public override String GetKey(int index) {
355String key, value;
382internal readonly String Name;
384internal readonly String Value;
387internal HttpServerVarsCollectionEntry(String name, String value) {
393internal HttpServerVarsCollectionEntry(String name, DynamicServerVariable var) {
399internal String GetValue(HttpRequest request) {
400String v = null;
HttpValueCollection.cs (16)
55internal HttpValueCollection(String str, bool readOnly, bool urlencoded, Encoding encoding): base(StringComparer.OrdinalIgnoreCase) {
56if (!String.IsNullOrEmpty(str))
111if (!String.IsNullOrEmpty(value)) {
155internal void FillFromString(String s) {
159internal void FillFromString(String s, bool urlencoded, Encoding encoding) {
187String name = null;
188String value = null;
210base.Add(null, String.Empty);
244String name, value;
262base.Add(null, String.Empty);
290public override String ToString() {
294internal virtual String ToString(bool urlencoded) {
298internal virtual String ToString(bool urlencoded, IDictionary excludeKeys) {
301return String.Empty;
304String key, keyPrefix, item;
316keyPrefix = (key != null) ? (key + "=") : String.Empty;
HttpWriter.cs (9)
403private String _filename;
412internal HttpFileResponseElement(String filename, long offset, long size, bool isImpersonating, bool supportsLongTransmitFile) :
419internal HttpFileResponseElement(String filename, long offset, long size) :
541String s = _callback(HttpContext.Current);
558private unsafe void CreateFirstSubstData(String s, IIS7WorkerRequest iis7WorkerRequest, Encoder encoder) {
590String s = _callback(HttpContext.Current);
1155internal void WriteFile(String filename, long offset, long size) {
1659public override void Write(String s) {
1707public void WriteString(String s, int index, int count) {
IisTraceListener.cs (12)
36if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
48if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
60if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
72if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
81 public override void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, object data) {
86string datastring = String.Empty;
94 public override void TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, int id, params object[] data) {
116public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType severity, int id, string message) {
127public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType severity, int id, string format, params object[] args) {
128TraceEvent(eventCache, source, severity, id, String.Format(CultureInfo.InvariantCulture, format, args));
132private String AppendTraceOptions(TraceEventCache eventCache, String message) {
ModelBinding\Error.cs (8)
9string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.BindingBehavior_ValueNotFound),
15string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Common_TypeMustImplementInterface),
21string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.GenericModelBinderProvider_ParameterMustSpecifyOpenGenericType),
27string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.GenericModelBinderProvider_TypeArgumentCountMismatch),
33string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderProviderCollection_BinderForTypeNotFound),
40string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderUtil_ModelCannotBeNull),
47string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderUtil_ModelInstanceIsWrong),
59string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderUtil_ModelTypeIsWrong),
Security\ADMembershipProvider.cs (13)
319if (String.IsNullOrEmpty(name))
339if (String.IsNullOrEmpty(temp))
343if (String.IsNullOrEmpty(adConnectionString))
356if ((String.Compare(connProtection, "Secure", StringComparison.Ordinal) != 0) &&
357(String.Compare(connProtection, "None", StringComparison.Ordinal) != 0))
630if (!String.IsNullOrEmpty(attribUnrecognized))
3127if (String.IsNullOrEmpty(connectionStringName))
3162if (String.Compare(valueName, "attributeMapUsername", StringComparison.Ordinal) == 0)
3242if (String.Compare(valueName, "attributeMapUsername", StringComparison.Ordinal) != 0)
3547if (String.Compare(connProtection, "Secure", StringComparison.Ordinal) == 0)
3700if (String.IsNullOrEmpty(containerDN))
4111if (!String.IsNullOrEmpty(tempUsername))
4394string errorMsg = String.Empty;
Security\FormsAuthentication.cs (42)
54public static String HashPasswordForStoringInConfigFile(String password, String passwordFormat) {
136if (String.IsNullOrEmpty(encryptedTicket) || encryptedTicket.Length > MAX_TICKET_LENGTH)
239public static String Encrypt(FormsAuthenticationTicket ticket) {
242internal static String Encrypt(FormsAuthenticationTicket ticket, bool hexEncodedTicket) {
303public static bool Authenticate(String name, String password) {
318private static bool InternalAuthenticate(String name, String password) {
343String pass = (String)u.Password;
351String encPassword;
384return(String.Compare(encPassword,
410string cookieValue = String.Empty;
436public static void SetAuthCookie(String userName, bool createPersistentCookie) {
446public static void SetAuthCookie(String userName, bool createPersistentCookie, String strCookiePath) {
473public static HttpCookie GetAuthCookie(String userName, bool createPersistentCookie) {
478public static HttpCookie GetAuthCookie(String userName, bool createPersistentCookie, String strCookiePath) {
481private static HttpCookie GetAuthCookie(String userName, bool createPersistentCookie, String strCookiePath, bool hexEncodedTicket) {
484userName = String.Empty;
498String.Empty, // User-Data
502String strTicket = Encrypt(ticket, hexEncodedTicket);
525internal static String GetReturnUrl(bool useDefaultIfAbsent)
530String returnUrl = context.Request.QueryString[ReturnUrlVar];
556public static String GetRedirectUrl(String userName, bool createPersistentCookie)
571public static void RedirectFromLoginPage(String userName, bool createPersistentCookie) {
576public static void RedirectFromLoginPage(String userName, bool createPersistentCookie, String strCookiePath) {
651if (!String.IsNullOrEmpty(defaultUrl)) {
655if (!String.IsNullOrEmpty(loginUrl)) {
666public static String FormsCookieName { get { Initialize(); return _FormsName; }}
668public static String FormsCookiePath { get { Initialize(); return _FormsCookiePath; }}
724if (!String.IsNullOrEmpty(AppSettings.FormsAuthReturnUrlVar)) {
755if (!String.IsNullOrEmpty(extraQueryString)) {
780private const String CONFIG_DEFAULT_COOKIE = ".ASPXAUTH";
785private static String _FormsName;
789private static String _FormsCookiePath;
Security\FormsAuthenticationTicket.cs (15)
38public String Name { get { return _Name;}}
75public String UserData { get { return _UserData;}}
81public String CookiePath { get { return _CookiePath;}}
143private String _Name;
147private String _UserData;
148private String _CookiePath;
176String name,
180String userData) {
192String name,
196String userData,
197String cookiePath) {
214public FormsAuthenticationTicket(String name, bool isPersistent, Int32 timeout) {
228internal static FormsAuthenticationTicket FromUtc(int version, String name, DateTime issueDateUtc, DateTime expirationUtc, bool isPersistent, String userData, String cookiePath) {
Security\PassportIdentity.cs (130)
33private String _Name;
56String strTVariable = context.Request.QueryString["t"];
57String strPVariable = context.Request.QueryString["p"];
61String strMSPAuthCookie = ((cookieAuth != null && cookieAuth.Value != null) ? cookieAuth.Value : String.Empty);
62String strMSPProfCookie = ((cookieProf != null && cookieProf.Value != null) ? cookieProf.Value : String.Empty);
63String strMSPProfCCookie = ((cookieProfC != null && cookieProfC.Value != null) ? cookieProfC.Value : String.Empty);
77String strACookie = UrlEncodeCookie(strA.ToString()); //HttpUtility.AspCompatUrlEncode(strA.ToString());
78String strPCookie = UrlEncodeCookie(strP.ToString()); //HttpUtility.AspCompatUrlEncode(strP.ToString());
89String strRequestLine = context.Request.HttpMethod + " " +
101String strResponseHeaders = szOut.ToString();
107_Name = String.Empty;
112private void SetHeaders(HttpContext context, String strResponseHeaders) {
118String strCurrentHeader = strResponseHeaders.Substring(iStart, iEnd - iStart);
122String strHeader = strCurrentHeader.Substring(0, iColon);
123String strValue = strCurrentHeader.Substring(iColon+1);
144return String.Empty;
171public String Name {
181_Name = String.Empty;
197public String AuthenticationType { get { return "Passport";}}
212public String this[String strProfileName]
217return String.Empty;
220return(String) oValue;
265public Object GetProfileObject(String strProfileName) {
318public String GetDomainFromMemberName(String strMemberName) {
335public bool HasProfile(String strProfile) {
363public Object GetOption(String strOpt) {
372public void SetOption(String strOpt, Object vOpt) {
379public String LogoutURL() {
384public String LogoutURL(String szReturnURL,
385String szCOBrandArgs,
387String strDomain,
487public String LogoTag() {
494public String LogoTag(String strReturnUrl) {
502public String LogoTag2() {
509public String LogoTag2(String strReturnUrl) {
525public String LogoTag(String strReturnUrl,
528String strCoBrandedArgs,
531String strNameSpace,
548public String LogoTag(String strReturnUrl,
551String strCoBrandedArgs,
554String strNameSpace,
580public String LogoTag2(String strReturnUrl,
583String strCoBrandedArgs,
586String strNameSpace,
603public String LogoTag2(String strReturnUrl,
606String strCoBrandedArgs,
609String strNameSpace,
639public String AuthUrl() {
644public String AuthUrl(String strReturnUrl) {
649public String AuthUrl2() {
654public String AuthUrl2(String strReturnUrl) {
667public String AuthUrl (String strReturnUrl,
670String strCoBrandedArgs,
672String strNameSpace,
695public String AuthUrl2 (String strReturnUrl,
698String strCoBrandedArgs,
700String strNameSpace,
724public String AuthUrl (String strReturnUrl,
727String strCoBrandedArgs,
729String strNameSpace,
753public String AuthUrl2 (String strReturnUrl,
756String strCoBrandedArgs,
758String strNameSpace,
781String szRetURL,
784String szCOBrandArgs,
786String strNameSpace,
804String szRetURL,
807String szCOBrandArgs,
809String strNameSpace,
814String str = GetLoginChallenge(szRetURL, iTimeWindow, fForceLogin, szCOBrandArgs,
834if (!String.IsNullOrEmpty(str)) {
849public int LoginUser(String strReturnUrl) {
855public String GetLoginChallenge() {
860public String GetLoginChallenge(String strReturnUrl) {
865public String GetLoginChallenge(
866String szRetURL,
869String szCOBrandArgs,
871String strNameSpace,
892String strRet = str.ToString();
907public String GetDomainAttribute(String strAttribute, int iLCID, String strDomain) {
917public Object Ticket(String strAttribute) {
926public Object GetCurrentConfig(String strAttribute) {
935public String HexPUID {
962public static void SignOut(String strSignOutDotGifFileName) {
964String [] sCookieNames = {"MSPAuth", "MSPProf", "MSPConsent", "MSPSecAuth", "MSPProfC"};
965String [] sCookieDomains = {"TicketDomain", "TicketDomain", "ProfileDomain", "SecureDomain", "TicketDomain"};
966String [] sCookiePaths = {"TicketPath", "TicketPath", "ProfilePath", "SecurePath", "TicketPath"};
967String [] sCookieDomainsV = new String[5];
968String [] sCookiePathsV = new String[5];
989if (obj != null && (obj is String))
990sCookieDomainsV[iter] = (String) obj;
996if (obj != null && (obj is String))
997sCookiePathsV[iter] = (String) obj;
1009HttpCookie cookie = new HttpCookie(sCookieNames[iter], String.Empty);
1035String strRU = context.Request.QueryString["ru"];
1048static public String Encrypt(String strData) {
1057static public String Decrypt(String strData) {
1062static public String Compress(String strData) {
1066static public String Decompress(String strData) {
1071static public int CryptPutHost(String strHost) {
1080static public int CryptPutSite(String strSite) {
1097static private String CallPassportCryptFunction(int iFunctionID, String strData) {
State\InProcStateClientManager.cs (12)
34public void OnCacheItemRemoved(String key, Object value, CacheItemRemovedReason reason) {
36String id;
75private string CreateSessionStateCacheKey(String id) {
81if (String.IsNullOrEmpty(name))
103String id,
197String id,
207String id,
218String id,
247String id,
363public override void CreateUninitializedItem(HttpContext context, String id, int timeout) {
403String id,
440public override void ResetItemTimeout(HttpContext context, String id)
State\OutOfProcStateClientManager.cs (12)
61if (String.IsNullOrEmpty(name))
94String stateConnectionString = config.StateConnectionString;
256String id,
433String id,
518String id,
531String id,
543String id,
558String id,
597String id,
612public override void ResetItemTimeout(HttpContext context, String id) {
628public override void CreateUninitializedItem(HttpContext context, String id, int timeout) {
684return String.Format(CultureInfo.InvariantCulture, formatString, Server, Port);
State\sqlstateclientmanager.cs (15)
106if (String.IsNullOrEmpty(name))
140String sqlConnectionString = config.SqlConnectionString;
213if (String.IsNullOrEmpty(database)) {
218if (!String.IsNullOrEmpty(database)) {
328if (String.IsNullOrEmpty(logon)) {
405SessionStateStoreData DoGet(HttpContext context, String id, bool getExclusive,
570String id,
582String id,
595String id,
621String id,
707String id,
732public override void ResetItemTimeout(HttpContext context, String id) {
758public override void CreateUninitializedItem(HttpContext context, String id, int timeout) {
981builder.Password = String.Empty;
982builder.UserID = String.Empty;
UI\ClientScriptManager.cs (31)
64private Dictionary<Assembly, Dictionary<String, Object>> _registeredResourcesToSuppress;
93internal Dictionary<Assembly, Dictionary<String, Object>> RegisteredResourcesToSuppress {
96_registeredResourcesToSuppress = new Dictionary<Assembly, Dictionary<String, Object>>();
129return String.Empty;
137RegisterForEventValidation(uniqueId, String.Empty);
147if (String.IsNullOrEmpty(uniqueId)) {
169if (!String.IsNullOrEmpty(fieldValue)) {
197if (String.IsNullOrEmpty(unsafeField)) {
225ValidateEvent(uniqueId, String.Empty);
233if (String.IsNullOrEmpty(uniqueId)) {
292(String.Equals(_owner.RequestInternal.Url.Scheme, "https", StringComparison.OrdinalIgnoreCase))) ?
452if (String.IsNullOrEmpty(options.Argument)) {
542if (String.IsNullOrEmpty(resourceName)) {
743_owner._hiddenFieldsToRender = new Dictionary<String, String>();
828if (String.IsNullOrEmpty(url)) {
917if (String.IsNullOrEmpty(script)) {
980Tuple<ScriptKey, String, Boolean> entry = new Tuple<ScriptKey, String, Boolean>(key, script, needsScriptTags);
1111entryKey = String.Empty;
1133if (!String.IsNullOrEmpty(_owner.ClientOnSubmitEvent) && _owner.ClientSupportsJavaScript) {
1173foreach (Tuple<ScriptKey, String, Boolean> entry in scripts) {
1177Dictionary<String, Object> resources;
1205Dictionary<String, Object> systemWebResources;
1218var localPath = GetWebResourceUrl(_owner, typeof(Page), webFormScript, htmlEncoded: true, scriptManager: _owner.ScriptManager, enableCdn: false);
1219if (!String.IsNullOrEmpty(localPath)) {
1322private static int ComputeHashKey(String uniqueId, String argument) {
1323if (String.IsNullOrEmpty(argument)) {
1363stateString = String.Empty;
1440key = String.Empty;
UI\ControlBuilder.cs (51)
103Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName));
121Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName));
136public virtual String ItemType {
693Debug.Assert(!String.IsNullOrEmpty(name));
700if (String.IsNullOrEmpty(expressionPrefix)) {
702if (String.IsNullOrEmpty(controlID)) {
726Debug.Assert(!(String.IsNullOrEmpty(expressionPrefix) ^ (expressionBuilder == null)), "expressionBuilder should be non-null iff expressionPrefix is non-empty");
754if (String.Equals(bpe.Name, entry.Name, StringComparison.OrdinalIgnoreCase) &&
755String.Equals(bpe.Filter, entry.Filter, StringComparison.OrdinalIgnoreCase)) {
757if (!String.IsNullOrEmpty(entry.Filter)) {
868entry.Filter = String.Empty;
885Debug.Assert(!String.IsNullOrEmpty(name));
889string objectModelName = String.Empty;
936if (String.Equals(entry.Name, "ID", StringComparison.OrdinalIgnoreCase) &&
954Debug.Assert(!String.IsNullOrEmpty(name));
964string objectModelName = String.Empty;
969if (String.Equals(name, BaseTemplateCodeDomTreeGenerator.skinIDPropertyName, StringComparison.OrdinalIgnoreCase) &&
973if (!String.IsNullOrEmpty(filter)) {
1080if (String.IsNullOrEmpty(value)) {
1141Debug.Assert(!String.IsNullOrEmpty(name));
1145string objectModelName = String.Empty;
1326if (!String.IsNullOrEmpty(text)) {
1573newAttribs.AddFilteredAttribute(String.Empty, entry.Key.ToString(), entry.Value.ToString());
1823String filter = entry.Filter;
1825if (String.IsNullOrEmpty(filter) || filterResolutionService.EvaluateFilter(filter)) {
1834if (String.IsNullOrEmpty(entry.Filter)) {
1937ParseTimeData.DefaultPropertyBuilder = CreateChildBuilder(String.Empty, pca.DefaultProperty, null/*attribs*/, parser, null, null /*id*/, Line, VirtualPath, ref subType, true /*defaultProperty*/);
1967String.Equals(builder.SkinID, SkinID, StringComparison.OrdinalIgnoreCase)) {
2040if (!String.IsNullOrEmpty(SkinID)) {
2294string expressionPrefix = entry.ExpressionPrefix == null ? String.Empty : entry.ExpressionPrefix.Trim();
2297if (String.IsNullOrEmpty(expressionPrefix)) {
2306string expression = entry.Expression == null ? String.Empty : entry.Expression.Trim();
2313if (!String.IsNullOrEmpty(expressionPrefix)) {
2656attribvalue = String.Empty;
2709string formatString = String.Empty;
2725AddBoundProperty(filter, attribname, String.Empty, code, null /*expressionBuilder*/, null /*parsedExpressionData*/, String.Empty, String.Empty, false, encode, line, column);
2729AddBoundProperty(filter, attribname, String.Empty, code, null /*expressionBuilder*/, null /*parsedExpressionData*/, fieldName, formatString, isTwoWayBindingStatement, encode, line, column);
2739AddBoundProperty(filter, attribname, String.Empty, code, null /*expressionBuilder*/, null /*parsedExpressionData*/, String.Empty, String.Empty, false, encode, line, column);
2779AddBoundProperty(filter, attribname, expressionPrefix, expressionCode, expressionBuilder, null /*parsedExpressionData*/, String.Empty, String.Empty, false, encode : false );
2902expression = String.Empty;
2909expression, resourcesExpressionBuilder, parsedExpressionData, true, String.Empty, String.Empty, false, encode:false);
2925IDictionary<String, Pair> attributeValuePositions = null;
3122if (!FilterableAttribute.IsPropertyFilterable(propDesc) && !String.IsNullOrEmpty(filter)) {
3291if (String.IsNullOrEmpty(entry1.Filter)) {
3300if (String.IsNullOrEmpty(entry2.Filter)) {
UI\Page.cs (70)
289internal Dictionary<String, String> _hiddenFieldsToRender;
694return (_clientTarget == null) ? String.Empty : _clientTarget;
705public String ClientQueryString {
721_clientQueryString = String.Empty;
785protected internal virtual String UniqueFilePathSuffix {
793_uniqueFilePathSuffix = String.Concat(UniqueFilePathSuffixID + "=", ticks.ToString("D6", CultureInfo.InvariantCulture));
840return String.Empty;
906return String.Empty;
1093return String.Empty;
1341public virtual String Theme {
1350if (!String.IsNullOrEmpty(value) && !FileUtil.IsValidDirectoryName(value)) {
1390public virtual String StyleSheetTheme {
1497public override Control FindControl(String id) {
1524return String.Empty;
1570if (!String.IsNullOrEmpty(_errorPage)) {
1953String [] nullValues = ret.GetValues(null);
2139if (!String.IsNullOrEmpty(ViewStateUserKey)) {
2215viewStateChunks.Add(String.Empty);
2280_hiddenFieldsToRender[ViewStateFieldPrefixID] = String.Empty;
2323" : String.Empty), true);
2330string focusedControlId = String.Empty;
2424ClientScript.RegisterHiddenField(ViewStateEncryptionID, String.Empty);
2561if (String.IsNullOrEmpty(_validatorInvalidControl)) {
2588return ClientScript.GetPostBackEventReference(control, String.Empty);
2633String styleSheetName = StyleSheetTheme;
2634if (!String.IsNullOrEmpty(styleSheetName)) {
2652String themeName = Theme;
2653if (!String.IsNullOrEmpty(themeName)) {
2706ClientScript.RegisterHiddenField(lastFocusID, String.Empty);
2728ClientScript.RegisterHiddenField(postEventSourceID, String.Empty);
2729ClientScript.RegisterHiddenField(postEventArgumentID, String.Empty);
3326bool hasEventSource = (!String.IsNullOrEmpty(eventSource));
3583if (String.IsNullOrEmpty(varyByContentEncoding)) {
3586if (String.IsNullOrEmpty(varyByHeader)) {
3589if (String.IsNullOrEmpty(varyByCustom)) {
3592if (String.IsNullOrEmpty(varyByParam)) {
3595if (String.IsNullOrEmpty(varyByControl)) {
3744if (String.IsNullOrEmpty(varyByParam) &&
3745String.IsNullOrEmpty(varyByControl) &&
3750if (!String.IsNullOrEmpty(varyByParam)) {
3756if (!String.IsNullOrEmpty(varyByControl)) {
3773if (!String.IsNullOrEmpty(sqlDependency)) {
4075if (!String.Equals(browser.Browser, "ie", StringComparison.OrdinalIgnoreCase) || browser.MajorVersion < 6 ||
4660string callbackControlId = String.Empty;
4669if (String.IsNullOrEmpty(exportedWebPartID)) {
4673if (String.Equals(Request.QueryString["scope"], "shared", StringComparison.OrdinalIgnoreCase)) {
4679queryString = String.Empty;
4956string callbackControlId = String.Empty;
4965if (String.IsNullOrEmpty(exportedWebPartID)) {
4969if (String.Equals(Request.QueryString["scope"], "shared", StringComparison.OrdinalIgnoreCase)) {
4975queryString = String.Empty;
5277if (String.IsNullOrEmpty(title)) {
5331bool needsCallbackLoadScript = !String.IsNullOrEmpty(_requestValueCollection[callbackLoadScriptID]);
5367bool needsCallbackLoadScript = !String.IsNullOrEmpty(_requestValueCollection[callbackLoadScriptID]);
5379bool needsCallbackLoadScript = !String.IsNullOrEmpty(_requestValueCollection[callbackLoadScriptID]);
5384if (String.IsNullOrEmpty(index)) {
5579if (!String.IsNullOrEmpty(_clientTarget)) {
5597if (!String.IsNullOrEmpty(preferredResponseEncoding)) {
5601if(!String.IsNullOrEmpty(preferredRequestEncoding)) {
5616if (!String.IsNullOrEmpty(_titleToBeSet)) {
5626if (!String.IsNullOrEmpty(_descriptionToBeSet)) {
5636if (!String.IsNullOrEmpty(_keywordsToBeSet)) {
6197if (String.IsNullOrEmpty(validationGroup) &&
6211validationGroup = String.Empty;
6219if (0 == String.Compare(baseValidator.ValidationGroup, validationGroup,
6269private String _relativeFilePath;
6271internal String RelativeFilePath {
6274String s = Context.Request.CurrentExecutionFilePath;
6275String filePath = Context.Request.FilePath;
UI\TraceContext.cs (9)
202Write(String.Empty, message, null, false, _writeToDiagnosticsTrace);
224Write(String.Empty, message, null, false, writeToDiagnostics);
238Write(String.Empty, message, null, true, _writeToDiagnosticsTrace);
274category = String.Empty;
277message = String.Empty;
305if (eMsg == null) eMsg = String.Empty;
307if (eTrace == null) eTrace = String.Empty;
363internal void AddControlSize(String controlId, int renderSize) {
377internal void AddControlStateSize(String controlId, int viewstateSize, int controlstateSize) {
UI\Util.cs (22)
70control.AccessKey = String.Empty;
333location = String.Format(CultureInfo.InvariantCulture, location, assembly, version);
356internal /*public*/ static String StringFromVirtualPath(VirtualPath virtualPath) {
368internal /*public*/ static String StringFromFile(string path) {
376internal /*public*/ static String StringFromFile(string path, ref Encoding encoding) {
399internal /*public*/ static String StringFromFileIfExists(string path) {
506String physicalDir = virtualDir.MapPathInternal();
709string deviceName = String.Empty;
827ns = String.Join(".", parts, 0, parts.Length-1);
1040if (String.IsNullOrEmpty(ns))
1102return String.Join(".", chunks, 0, chunkCount-1);
1130if (String.IsNullOrEmpty(s))
1259return (String.Compare(t.FullName, "System.__ComObject", StringComparison.Ordinal) == 0);
1269if (String.IsNullOrEmpty(location))
1309Debug.Assert(!String.IsNullOrEmpty(assemblyPath));
1408string appPath = context.Request.ApplicationPath ?? String.Empty;
1424if (String.IsNullOrEmpty(value)) {
1425return String.Empty;
1578validationGroup = String.Empty;
1615injectedOnClick = control.Page.ClientScript.GetPostBackEventReference(control, String.Empty, true);
1645Debug.Assert(!String.IsNullOrEmpty(secondScript));
1647if (!String.IsNullOrEmpty(firstScript)) {
UI\WebControls\BoundField.cs (15)
124_dataField = String.Empty;
129if (!String.Equals(value, ViewState["DataField"])) {
154_dataFormatString = String.Empty;
159if (!String.Equals(value, ViewState["DataFormatString"])) {
177if (!String.Equals(value, ViewState["HeaderText"])) {
266return String.Empty;
269if (!String.Equals(value, ViewState["NullDisplayText"])) {
352value = String.Empty;
389string formattedValue = String.Empty;
410formattedValue = String.Format(CultureInfo.CurrentCulture, formatting, dataValueString);
413formattedValue = String.Format(CultureInfo.CurrentCulture, formatting, dataValue);
427if (!String.IsNullOrEmpty(formatting)) {
428dataValueString = String.Format(CultureInfo.CurrentCulture, formatting, dataValue);
432if (!String.IsNullOrEmpty(dataValueString) && encode) {
549if (encode && !String.IsNullOrEmpty(unencodedHeaderText)) {
UI\WebControls\Calendar.cs (9)
107return (s != null) ? s : String.Empty;
287return((s == null) ? ">" : (String) s);
382return((s == null) ? "<" : (String) s);
505return((s == null) ? ">>" : (String) s);
549return((s == null) ? ">" : (String) s);
949if (!String.IsNullOrEmpty(title)) {
1163if (String.Compare(eventArgument, 0, NAVIGATE_MONTH_COMMAND, 0, NAVIGATE_MONTH_COMMAND.Length, StringComparison.Ordinal) == 0) {
1181else if (String.Compare(eventArgument, 0, SELECT_RANGE_COMMAND, 0, SELECT_RANGE_COMMAND.Length, StringComparison.Ordinal) == 0) {
1329if (!String.IsNullOrEmpty(title)) {
UI\WebControls\CommandField.cs (27)
43return String.Empty;
46if (!String.Equals(value, ViewState["CancelImageUrl"])) {
70if (!String.Equals(value, ViewState["CancelText"])) {
110return String.Empty;
113if (!String.Equals(value, ViewState["DeleteImageUrl"])) {
137if (!String.Equals(value, ViewState["DeleteText"])) {
158return String.Empty;
161if (!String.Equals(value, ViewState["EditImageUrl"])) {
185if (!String.Equals(value, ViewState["EditText"])) {
206return String.Empty;
209if (!String.Equals(value, ViewState["InsertImageUrl"])) {
233if (!String.Equals(value, ViewState["InsertText"])) {
254return String.Empty;
257if (!String.Equals(value, ViewState["NewImageUrl"])) {
281if (!String.Equals(value, ViewState["NewText"])) {
302return String.Empty;
305if (!String.Equals(value, ViewState["SelectImageUrl"])) {
329if (!String.Equals(value, ViewState["SelectText"])) {
465return String.Empty;
468if (!String.Equals(value, ViewState["UpdateImageUrl"])) {
492if (!String.Equals(value, ViewState["UpdateText"])) {
604AddButtonToCell(cell, DataControlCommands.CancelCommandName, CancelText, false, String.Empty, rowIndex, CancelImageUrl);
613AddButtonToCell(cell, DataControlCommands.CancelCommandName, CancelText, false, String.Empty, rowIndex, CancelImageUrl);
619AddButtonToCell(cell, DataControlCommands.EditCommandName, EditText, false, String.Empty, rowIndex, EditImageUrl);
627AddButtonToCell(cell, DataControlCommands.DeleteCommandName, DeleteText, false, String.Empty, rowIndex, DeleteImageUrl);
635AddButtonToCell(cell, DataControlCommands.NewCommandName, NewText, false, String.Empty, rowIndex, NewImageUrl);
643AddButtonToCell(cell, DataControlCommands.SelectCommandName, SelectText, false, String.Empty, rowIndex, SelectImageUrl);
UI\WebControls\DetailsView.cs (23)
340return String.Empty;
386return (s != null) ? s : String.Empty;
682public virtual String EmptyDataText {
688return String.Empty;
858public virtual String FooterText {
864return String.Empty;
959public virtual String HeaderText {
965return String.Empty;
2137return new ChildTable(String.IsNullOrEmpty(ID) ? null : ClientID);
2151ResetModelValidationGroup(EnableModelValidation, String.Empty);
2152HandleDelete(String.Empty);
2270if (!String.IsNullOrEmpty(argument)) {
2797ResetModelValidationGroup(causesValidation, String.Empty);
2798HandleInsert(String.Empty, causesValidation);
2875if (!String.IsNullOrEmpty(oldDataKeyString)) {
2937string validationGroup = String.Empty;
2975if (!DesignMode && !String.IsNullOrEmpty(ItemType)) {
3138if (!String.IsNullOrEmpty(hiddenFieldState)) {
3182scriptOM.RegisterHiddenField(hiddenFieldID, String.Empty);
3184string startupScript = String.Format(CultureInfo.InvariantCulture, startupScriptFormat, clientReference, hiddenFieldID, doCallBackCall, PageIndex);
3369HandleEvent(dvcea, false, String.Empty);
3568ResetModelValidationGroup(causesValidation, String.Empty);
3569HandleUpdate(String.Empty, causesValidation);
UI\WebControls\FontUnit.cs (15)
158if (!String.IsNullOrEmpty(value)) {
163if (String.Equals(value, "xx-small", StringComparison.OrdinalIgnoreCase) ||
164String.Equals(value, "xxsmall", StringComparison.OrdinalIgnoreCase)) {
168else if (String.Equals(value, "x-small", StringComparison.OrdinalIgnoreCase) ||
169String.Equals(value, "xsmall", StringComparison.OrdinalIgnoreCase)) {
173else if (String.Equals(value, "x-large", StringComparison.OrdinalIgnoreCase) ||
174String.Equals(value, "xlarge", StringComparison.OrdinalIgnoreCase)) {
178else if (String.Equals(value, "xx-large", StringComparison.OrdinalIgnoreCase) ||
179String.Equals(value, "xxlarge", StringComparison.OrdinalIgnoreCase)) {
185if (String.Equals(value, "small", StringComparison.OrdinalIgnoreCase)) {
189else if (String.Equals(value, "smaller", StringComparison.OrdinalIgnoreCase)) {
195if (String.Equals(value, "large", StringComparison.OrdinalIgnoreCase)) {
199if (String.Equals(value, "larger", StringComparison.OrdinalIgnoreCase)) {
204else if ((firstChar == 'm') && String.Equals(value, "medium", StringComparison.OrdinalIgnoreCase)) {
325string s = String.Empty;
UI\WebControls\GridView.cs (27)
106private string _sortExpression = String.Empty;
392return String.Empty;
436return (s != null) ? s : String.Empty;
812public virtual String EmptyDataText {
818return String.Empty;
1139return o == null ? String.Empty : (string)o;
1891if (String.IsNullOrEmpty(_sortExpressionSerialized)) {
2319return new ChildTable(String.IsNullOrEmpty(ID) ? null : ClientID);
2391if (SortDirectionInternal == SortDirection.Descending && !String.IsNullOrEmpty(sortExpression)) {
2717ResetModelValidationGroup(EnableModelValidation, String.Empty);
2791if (String.IsNullOrEmpty(argument)) {
3032if (TryGetRowIndex(dce.Row, (String)dce.CommandArgument, out rowIndex)) {
3414_sortExpression = String.Empty;
3512string oldSortExpression = String.Empty;
3514if (!String.IsNullOrEmpty(sortExpressionSerialized) || !String.IsNullOrEmpty(dataKeysSerialized)) {
3519if (!String.IsNullOrEmpty(sortExpressionSerialized)) {
3522if (!String.IsNullOrEmpty(dataKeysSerialized)) {
3600string validationGroup = String.Empty;
3645if (!DesignMode && !String.IsNullOrEmpty(ItemType)) {
3667if (!String.IsNullOrEmpty(hiddenFieldState)) {
3731scriptOM.RegisterHiddenField(hiddenFieldID, String.Empty);
3735string startupScript = String.Format(CultureInfo.InvariantCulture, startupScriptFormat, clientReference, hiddenFieldID, doCallBackCall, PageIndex, sortExpressionSerialized, (int)SortDirection);
3937if (!String.IsNullOrEmpty(SortExpression) && String.Equals(field.SortExpression, SortExpression, StringComparison.OrdinalIgnoreCase)) {
4167HandleEvent(gvcea, false, String.Empty);
4426ResetModelValidationGroup(causesValidation, String.Empty);
UI\WebControls\HyperLinkField.cs (19)
81return String.Empty;
84if (!String.Equals(value, ViewState["DataNavigateUrlFormatString"])) {
107return String.Empty;
110if (!String.Equals(value, ViewState["DataTextField"])) {
132return String.Empty;
135if (!String.Equals(value, ViewState["DataTextFormatString"])) {
158return String.Empty;
161if (!String.Equals(value, ViewState["NavigateUrl"])) {
184return String.Empty;
187if (!String.Equals(value, ViewState["Target"])) {
209return String.Empty;
212if (!String.Equals(value, ViewState["Text"])) {
238string formattedUrlValue = String.Empty;
248formattedUrlValue = String.Format(CultureInfo.CurrentCulture, formatting, dataUrlValues);
259string formattedTextValue = String.Empty;
267formattedTextValue = String.Format(CultureInfo.CurrentCulture, formatting, dataTextValue);
362string dataTextValue = String.Empty;
376string dataNavValue = String.Empty;
410if (!String.Equals(arr1[i], arr2[i])) {
UI\WebControls\ImageField.cs (18)
50return String.Empty;
53if (!String.Equals(value, ViewState["AlternateText"])) {
94return String.Empty;
97if (!String.Equals(value, ViewState["DataAlternateTextField"])) {
118return String.Empty;
121if (!String.Equals(value, ViewState["DataAlternateTextFormatString"])) {
144_dataField = String.Empty;
149if (!String.Equals(value, ViewState["DataImageUrlField"])) {
168return String.Empty;
171if (!String.Equals(value, ViewState["DataImageUrlFormatString"])) {
194return String.Empty;
197if (!String.Equals(value, ViewState["NullDisplayText"])) {
217return String.Empty;
220if (!String.Equals(value, ViewState["NullImageUrl"])) {
325string formattedValue = String.Empty;
336formattedValue = String.Format(CultureInfo.CurrentCulture, formatting, dataValue);
357string strValue = String.Empty;
363formattedAlternateText = String.Format(CultureInfo.CurrentCulture, altTextFormatString, value);
UI\WebControls\MenuItem.cs (25)
114if (!String.IsNullOrEmpty(imageUrl)) {
118if (!String.IsNullOrEmpty(navigateUrl)) {
122if (!String.IsNullOrEmpty(target)) {
180return String.Empty;
239return String.Format(CultureInfo.CurrentCulture, _owner.StaticItemFormatString, Text);
242return String.Format(CultureInfo.CurrentCulture, _owner.DynamicItemFormatString, Text);
272return String.Empty;
316_internalValuePath = String.Join(TreeView.InternalPathSeparator.ToString(), pathParts.ToArray());
320return String.Empty;
358return String.Empty;
406return String.Empty;
461return String.Empty;
480return String.Empty;
502return String.Empty;
523return String.Empty;
545return String.Empty;
575return String.Empty;
620return String.Empty;
689panel.CssClass = String.Empty;
693panel.CssClass = String.Empty;
819writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
1008string expandImageUrl = (shouldRenderExpandImage ? GetExpandImageUrl() : String.Empty);
1059String.Format(CultureInfo.CurrentCulture, _owner.StaticPopOutImageTextFormatString, Text));
1064String.Format(CultureInfo.CurrentCulture, _owner.DynamicPopOutImageTextFormatString, Text));
1106writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
UI\WebControls\ModelDataSourceView.cs (19)
138return _modelTypeName ?? String.Empty;
154return _deleteMethod ?? String.Empty;
166return _insertMethod ?? String.Empty;
178return _selectMethod ?? String.Empty;
193return _updateMethod ?? String.Empty;
205return _dataKeyName ?? String.Empty;
252if (String.Equals(StartRowIndexParameterName, parameterName, StringComparison.OrdinalIgnoreCase)) {
258if (String.Equals(MaximumRowsParameterName, parameterName, StringComparison.OrdinalIgnoreCase)) {
264if (String.Equals(TotalRowCountParameterName, parameterName, StringComparison.OrdinalIgnoreCase)) {
299if (String.Equals(SortParameterName, parameterName, StringComparison.OrdinalIgnoreCase)) {
421if (!String.IsNullOrEmpty(arguments.SortExpression)) {
471if (String.IsNullOrEmpty(sortExpression) && !String.IsNullOrEmpty(DataKeyName)) {
497bool shouldSort = !String.IsNullOrEmpty(arguments.SortExpression);
936if (!String.IsNullOrEmpty(SelectMethod)) {
1097if (!String.IsNullOrEmpty(name)) {
1251string message = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelDataSourceView_ParameterCannotBeNull),
1258string message = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelDataSourceView_ParameterValueHasWrongType),
1284if (String.IsNullOrEmpty(modelTypeName)) {
UI\WebControls\ObjectDataSourceView.cs (26)
183return String.Empty;
202return String.Empty;
249return String.Empty;
287return String.Empty;
365return String.Empty;
383return String.Empty;
421return String.Empty;
458return String.Empty;
476return String.Empty;
692string propName = (de.Key == null ? String.Empty : de.Key.ToString());
738throw new InvalidOperationException(SR.GetString(SR.ObjectDataSourceView_CannotConvertType, paramName, paramValueType.FullName, String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", destinationType.GetGenericArguments()[0].FullName)));
787if (!String.IsNullOrEmpty(arguments.SortExpression)) {
1017if (String.IsNullOrEmpty(arguments.SortExpression)) {
1071arguments.SortExpression = String.Empty;
1079if (String.IsNullOrEmpty(maximumRowsParameterName) ||
1080String.IsNullOrEmpty(startRowIndexParameterName)) {
1144if (!String.IsNullOrEmpty(arguments.SortExpression)) {
1371if (String.Equals(methodName, mi.Name, StringComparison.OrdinalIgnoreCase)) {
1425string formattedParamName = String.Format(CultureInfo.InvariantCulture, OldValuesParameterFormatString, param0Name);
1426if (String.Equals(param1Name, formattedParamName, StringComparison.OrdinalIgnoreCase)) {
1431formattedParamName = String.Format(CultureInfo.InvariantCulture, OldValuesParameterFormatString, param1Name);
1432if (String.Equals(param0Name, formattedParamName, StringComparison.OrdinalIgnoreCase)) {
1486if (String.Equals(methodName, mi.Name, StringComparison.OrdinalIgnoreCase)) {
1564string paramString = String.Join(", ", paramNames);
1777parameterName = String.Format(CultureInfo.InvariantCulture, parameterNameFormatString, parameterName);
1780if (String.Equals(p.Name, parameterName, StringComparison.OrdinalIgnoreCase)) {
UI\WebControls\TreeNode.cs (34)
101if (!String.IsNullOrEmpty(imageUrl)) {
105if (!String.IsNullOrEmpty(navigateUrl)) {
109if (!String.IsNullOrEmpty(target)) {
187return String.Empty;
290return String.Empty;
312return String.Empty;
358_internalValuePath = String.Join(TreeView.InternalPathSeparator.ToString(), pathParts.ToArray());
362return String.Empty;
379return String.Empty;
562return String.Empty;
584return String.Empty;
605return String.Empty;
627return String.Empty;
656else if ((Owner != null) && !String.IsNullOrEmpty(InternalValuePath)) {
662_valuePath = String.Join(Owner.PathSeparator.ToString(), splitValuePath);
666return String.Empty;
740string populateNodeAttributeValue = String.Empty;
789String.Concat(indexString, Text, InternalValuePath, DataPath));
888string myId = String.Empty;
932writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
948writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
962string imageUrl = String.Empty;
964string imageToolTip = String.Empty;
1137string nodeImageUrl = String.Empty;
1161string selectImageId = String.Empty;
1215String.Format(CultureInfo.CurrentCulture, imageToolTip, Text));
1219String.Format(CultureInfo.CurrentCulture, imageToolTip, Text));
1223writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
1226 writer.AddAttribute(HtmlTextWriterAttribute.Title, String.Empty);
1239writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
1270string onClick = String.Empty;
1380writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
1383 writer.AddAttribute(HtmlTextWriterAttribute.Title, String.Empty);
1432&& !String.IsNullOrEmpty(WebControl.DisabledCssClass)) {
UI\WebControls\TreeView.cs (55)
329return String.Empty;
367_cachedCollapseImageUrl = String.Empty;
472return String.Empty;
510_cachedExpandImageUrl = String.Empty;
680return String.Empty;
736return String.Empty;
782_cachedNoExpandImageUrl = String.Empty;
1087return String.Empty;
1160public String SkipLinkText {
1162string s = ViewState["SkipLinkText"] as String;
1180return String.Empty;
1308if (!String.IsNullOrEmpty(oldAccessKey)) {
1309AccessKey = String.Empty;
1435_currentSiteMapNodeDataPath = String.Empty;
1465string navigateUrl = String.Empty;
1466string imageUrl = String.Empty;
1467string target = String.Empty;
1469string toolTip = String.Empty;
1470string imageToolTip = String.Empty;
1474string dataMember = String.Empty;
1493if (!String.IsNullOrEmpty(level.FormatString)) {
1506if (String.IsNullOrEmpty(text)) {
1525if (String.IsNullOrEmpty(value)) {
1582if (String.IsNullOrEmpty(target)) {
1637if (String.IsNullOrEmpty(navigateUrl)) {
1655if (!String.IsNullOrEmpty(text)) {
1658if (!String.IsNullOrEmpty(value)) {
1661if (!String.IsNullOrEmpty(imageUrl)) {
1664if (!String.IsNullOrEmpty(navigateUrl)) {
1667if (!String.IsNullOrEmpty(target)) {
1673if (!String.IsNullOrEmpty(toolTip)) {
1677if (!String.IsNullOrEmpty(imageToolTip)) {
1694if (String.Equals(data.Path, _currentSiteMapNodeDataPath, StringComparison.OrdinalIgnoreCase)) {
2239LevelImageUrls[index] = String.Empty;
2339if (String.IsNullOrEmpty(value)) {
2340return String.Empty;
2602string selectedNodeID = String.Empty;
2631string populateStartupScript = String.Empty;
2637scriptOM.RegisterHiddenField(this, PopulateLogID, String.Empty);
2654string selectedInfo = String.Empty;
2664if (!String.IsNullOrEmpty(_selectedNodeStyle.CssClass)) {
2673string hoverInfo = String.Empty;
2677if (!String.IsNullOrEmpty(_hoverNodeStyle.CssClass)) {
2679if (!String.IsNullOrEmpty(className)) {
2682if (!String.IsNullOrEmpty(hyperLinkClassName)) {
2769String.IsNullOrEmpty(DataSourceID) && DataSource == null) {
2777if (!String.IsNullOrEmpty(DataSourceID) || DataSource != null) {
3224if (!IsEnabled) return String.Empty;
3276String.Concat(nodeIndexString, nodeText, valuePath, dataPath));
3292string result = String.Empty;
3331_callbackEventArgument = String.Empty;
3350if (!String.IsNullOrEmpty(postedSelectedNodeID)) {
3475if (String.Equals(strValue, fullyExpandedString, StringComparison.OrdinalIgnoreCase)) {
3491if (String.Equals(strValue, fullyExpandedString, StringComparison.OrdinalIgnoreCase)) {
3499if (String.Equals(strValue, fullyExpandedString, StringComparison.OrdinalIgnoreCase)) {
UI\WebControls\Wizard.cs (45)
188return (obj == null) ? String.Empty : (string)obj;
226public virtual String CancelButtonText {
228string s = ViewState["CancelButtonText"] as String;
264public virtual String CancelDestinationPageUrl {
266string s = ViewState["CancelDestinationPageUrl"] as String;
267return s == null ? String.Empty : s;
361return (obj == null) ? String.Empty : (string)obj;
399public virtual String FinishCompleteButtonText {
401string s = ViewState["FinishCompleteButtonText"] as String;
441return (obj == null) ? String.Empty : (string)obj;
462return (obj == null) ? String.Empty : (string)obj;
500public virtual String FinishPreviousButtonText {
502string s = ViewState["FinishPreviousButtonText"] as String;
592string s = ViewState["HeaderText"] as String;
593return s == null ? String.Empty : s;
676return (obj == null) ? String.Empty : (string)obj;
714public virtual String StartNextButtonText {
716string s = ViewState["StartNextButtonText"] as String;
755return (obj == null) ? String.Empty : (string)obj;
793public virtual String StepNextButtonText {
795string s = ViewState["StepNextButtonText"] as String;
834return (obj == null) ? String.Empty : (string)obj;
872public virtual String StepPreviousButtonText {
874string s = ViewState["StepPreviousButtonText"] as String;
969public virtual String SkipLinkText {
1255return ViewState["SkipLinkText"] as String;
1461int newIndex = Int32.Parse((String)e.CommandArgument, CultureInfo.InvariantCulture);
1738if (String.Equals(CancelCommandName, ce.CommandName, StringComparison.OrdinalIgnoreCase)) {
1769if (String.Equals(MoveNextCommandName, ce.CommandName, StringComparison.OrdinalIgnoreCase)) {
1782} else if (String.Equals(MovePreviousCommandName, ce.CommandName, StringComparison.OrdinalIgnoreCase)) {
1798} else if (String.Equals(MoveCompleteCommandName, ce.CommandName, StringComparison.OrdinalIgnoreCase)) {
1811} else if (String.Equals(MoveToCommandName, ce.CommandName, StringComparison.OrdinalIgnoreCase)) {
1812newIndex = Int32.Parse((String)ce.CommandArgument, CultureInfo.InvariantCulture);
1861if (!String.IsNullOrEmpty(cancelDestinationUrl)) {
1878if (!String.IsNullOrEmpty(finishPageUrl)) {
2479} else if (!String.IsNullOrEmpty(Owner.HeaderText)) {
2714if ((Owner.HeaderTemplate == null) && String.IsNullOrEmpty(Owner.HeaderText)) {
2930String _originalError;
2973private String _button1ID;
2974private String _button2ID;
2975private String _button3ID;
3017String label1ID, String label2ID, String label3ID) {
3064private void CreateButtonControl(IButtonControl[] buttons, String id, bool causesValidation, string commandName) {
UI\WebParts\ConnectionsZone.cs (38)
662if (!String.IsNullOrEmpty(selectedValue)) {
746if (!String.IsNullOrEmpty(selectedValue)) {
938if (!String.IsNullOrEmpty(_pendingConnectionID)) {
956if (String.IsNullOrEmpty(consumerID)) {
972if (!String.IsNullOrEmpty(_pendingSelectedValue)) {
1244if (_pendingConnectionType == ConnectionType.Consumer && !String.IsNullOrEmpty(_pendingConnectionID)) {
1302String.Equals(eventArguments[0], disconnectEventArgument, StringComparison.OrdinalIgnoreCase)) {
1313String.Equals(eventArguments[0], connectEventArgument, StringComparison.OrdinalIgnoreCase)) {
1317if (String.Equals(eventArguments[1], providerEventArgument, StringComparison.OrdinalIgnoreCase)) {
1326String.Equals(eventArguments[0], configureEventArgument, StringComparison.OrdinalIgnoreCase)) {
1332else if (String.Equals(eventArgument, connectConsumerEventArgument, StringComparison.OrdinalIgnoreCase)) {
1336else if (String.Equals(eventArgument, connectProviderEventArgument, StringComparison.OrdinalIgnoreCase)) {
1340else if (String.Equals(eventArgument, closeEventArgument, StringComparison.OrdinalIgnoreCase)) {
1347else if (String.Equals(eventArgument, cancelEventArgument, StringComparison.OrdinalIgnoreCase)) {
1490if (!String.IsNullOrEmpty(connectToConsumerTitle)) {
1493label.AssociatedControlID = String.Empty;
1499if (!String.IsNullOrEmpty(connectToConsumerInstructionText)) {
1503label.AssociatedControlID = String.Empty;
1520label.AssociatedControlID = String.Empty;
1550connectVerb.EventArgument = String.Join(ID_SEPARATOR.ToString(CultureInfo.InvariantCulture),
1583if (!String.IsNullOrEmpty(connectToProviderTitle)) {
1586label.AssociatedControlID = String.Empty;
1592if (!String.IsNullOrEmpty(connectToProviderInstructionText)) {
1596label.AssociatedControlID = String.Empty;
1613label.AssociatedControlID = String.Empty;
1643connectVerb.EventArgument = String.Join(ID_SEPARATOR.ToString(CultureInfo.InvariantCulture),
1692if (!String.IsNullOrEmpty(instructionText)) {
1724if (!String.IsNullOrEmpty(instructionText)) {
1857String.Join(ID_SEPARATOR.ToString(CultureInfo.InvariantCulture),
1897String.Join(ID_SEPARATOR.ToString(CultureInfo.InvariantCulture),
1906if (!String.IsNullOrEmpty(instructionText)) {
1923if (!String.IsNullOrEmpty(instructionTitle)) {
1926label.Text = String.Format(CultureInfo.CurrentCulture, instructionTitle, WebPartToConnect.DisplayTitle);
1940if (!String.IsNullOrEmpty(noConnection)) {
1950if (!String.IsNullOrEmpty(instructions)) {
2139list.Items.Add(new ListItem(SR.GetString(SR.ConnectionsZone_NoConsumers), String.Empty));
2194list.Items.Add(new ListItem(SR.GetString(SR.ConnectionsZone_NoProviders), String.Empty));
2291(String.IsNullOrEmpty(_pendingConnectionID) ||
UI\WebParts\WebPartManager.cs (39)
528return String.Empty;
981if (!String.IsNullOrEmpty(zoneID)) {
1600if (String.IsNullOrEmpty(connectionID)) {
1789String displayName = attribute.DisplayName;
1790String id = attribute.ID;
1819String displayName = attribute.DisplayName;
1820String id = attribute.ID;
1894if (String.IsNullOrEmpty(title)) {
2292Debug.Assert(!String.IsNullOrEmpty(zoneID));
2293if (!String.IsNullOrEmpty(zoneID)) {
2382return String.Empty;
2390Debug.Assert(!String.IsNullOrEmpty(displayTitle));
2417(Personalization.Scope == PersonalizationScope.Shared) ? "&scope=shared" : String.Empty;
2422(!String.IsNullOrEmpty(queryString) ?
2424String.Empty) +
2720if (String.IsNullOrEmpty(version)) {
2724if (!String.Equals(version, ExportPartNamespaceValue, StringComparison.OrdinalIgnoreCase)) {
2748if (!String.IsNullOrEmpty(partTypeName)) {
2812if (!String.IsNullOrEmpty(importErrorMessage)) {
2822if (String.IsNullOrEmpty(importErrorMessage)) {
2992bool isNull = String.Equals(
3027if (!String.IsNullOrEmpty(typeName)) {
3127String.Equals(scope, PersonalizationScope.Shared.ToString(), StringComparison.OrdinalIgnoreCase) ?
3179if (String.IsNullOrEmpty(path)) {
3184if (!String.IsNullOrEmpty(path)) {
3208if (!String.IsNullOrEmpty(webPartID) && Personalization.IsEnabled) {
3388if (!String.IsNullOrEmpty(path)) {
3402if (childControl == null && String.IsNullOrEmpty(path)) {
3476if (String.Equals(connection.ID, idToDelete, StringComparison.OrdinalIgnoreCase)) {
3483if (String.Equals(connection.ID, idToDelete, StringComparison.OrdinalIgnoreCase)) {
3893string startupScript = String.Format(CultureInfo.InvariantCulture,
3898Page.ClientScript.RegisterStartupScript(this, typeof(WebPartManager), String.Empty, startupScript, false);
3914if (String.IsNullOrEmpty(zoneID)) {
3953if (!String.IsNullOrEmpty(zoneID)) {
3992string dragOverlayElementHtml = String.Format(CultureInfo.InvariantCulture, DragOverlayElementHtmlTemplate, ClientID);
4097if (!String.IsNullOrEmpty(path)) {
4100if (!String.IsNullOrEmpty(genericWebPartID)) {
4371if (String.IsNullOrEmpty(partID)) {
4387if (String.IsNullOrEmpty(childControlID)) {
UI\WebParts\WebPartZoneBase.cs (18)
243if (!String.IsNullOrEmpty(title)) {
248if (!String.IsNullOrEmpty(id)) {
432return ((s == null) ? String.Empty : s);
490return ((s == null) ? String.Empty : s);
509return ((s == null) ? String.Empty : s);
995String.Equals(eventArguments[0], dragEventArgument, StringComparison.OrdinalIgnoreCase));
1000String.Equals(eventArguments[0], partVerbEventArgument, StringComparison.OrdinalIgnoreCase));
1005String.Equals(eventArguments[0], zoneVerbEventArgument, StringComparison.OrdinalIgnoreCase));
1040if (String.IsNullOrEmpty(eventArgument)) {
1069if (String.Equals(verbEventArgument, closeEventArgument, StringComparison.OrdinalIgnoreCase)) {
1074else if (String.Equals(verbEventArgument, connectEventArgument, StringComparison.OrdinalIgnoreCase)) {
1079else if (String.Equals(verbEventArgument, deleteEventArgument, StringComparison.OrdinalIgnoreCase)) {
1084else if (String.Equals(verbEventArgument, editEventArgument, StringComparison.OrdinalIgnoreCase)) {
1089else if (String.Equals(verbEventArgument, minimizeEventArgument, StringComparison.OrdinalIgnoreCase)) {
1094else if (String.Equals(verbEventArgument, restoreEventArgument, StringComparison.OrdinalIgnoreCase)) {
1377WebPartManager.DisplayMode.AllowPageDesign && !String.IsNullOrEmpty(emptyZoneText));
1649if (!String.IsNullOrEmpty(s)) {
1665if (!String.IsNullOrEmpty(s)) {
UnsafeNativeMethods.cs (11)
56public static extern int LogonUser(String username, String domain, String password, int dwLogonType, int dwLogonProvider, ref IntPtr phToken);
657internal static extern int GetCredentialFromRegistry(String strRegKey, StringBuilder buffer, int size);
934internal static extern int IsapiAppHostMapPath(String appId, String virtualPath, StringBuilder buffer, int size);
937internal static extern int IsapiAppHostGetAppPath(String aboPath, StringBuilder buffer, int size);
940internal static extern int IsapiAppHostGetUncUser(String appId, StringBuilder usernameBuffer, int usernameSize, StringBuilder passwordBuffer, int passwordSize);
943internal static extern int IsapiAppHostGetSiteName(String appId, StringBuilder buffer, int size);
946internal static extern int IsapiAppHostGetSiteId(String site, StringBuilder buffer, int size);
949internal static extern int IsapiAppHostGetNextVirtualSubdir(String aboPath, bool inApp, ref int index, StringBuilder sb, int size);
Util\AspCompat.cs (136)
50[return: MarshalAs(UnmanagedType.BStr)] String Application_GetContentsNames();
51[return: MarshalAs(UnmanagedType.BStr)] String Application_GetStaticNames();
52Object Application_GetContentsObject([In, MarshalAs(UnmanagedType.LPWStr)] String name);
53void Application_SetContentsObject([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In] Object obj);
54void Application_RemoveContentsObject([In, MarshalAs(UnmanagedType.LPWStr)] String name);
56Object Application_GetStaticObject([In, MarshalAs(UnmanagedType.LPWStr)] String name);
58[return: MarshalAs(UnmanagedType.BStr)] String Request_GetAsString([In, MarshalAs(UnmanagedType.I4)] int what);
59[return: MarshalAs(UnmanagedType.BStr)] String Request_GetCookiesAsString();
63[return: MarshalAs(UnmanagedType.BStr)] String Response_GetCookiesAsString();
64void Response_AddCookie([In, MarshalAs(UnmanagedType.LPWStr)] String name);
65void Response_SetCookieText([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.LPWStr)] String text);
66void Response_SetCookieSubValue([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.LPWStr)] String key, [In, MarshalAs(UnmanagedType.LPWStr)] String value);
67void Response_SetCookieExpires([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.R8)] double dtExpires);
68void Response_SetCookieDomain([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.LPWStr)] String domain);
69void Response_SetCookiePath([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.LPWStr)] String path);
70void Response_SetCookieSecure([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.I4)] int secure);
71void Response_Write([In, MarshalAs(UnmanagedType.LPWStr)] String text);
73void Response_Redirect([In, MarshalAs(UnmanagedType.LPWStr)] String url);
74void Response_AddHeader([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In, MarshalAs(UnmanagedType.LPWStr)] String value);
75void Response_Pics([In, MarshalAs(UnmanagedType.LPWStr)] String value);
79void Response_AppendToLog([In, MarshalAs(UnmanagedType.LPWStr)] String entry);
80[return: MarshalAs(UnmanagedType.BStr)] String Response_GetContentType();
81void Response_SetContentType([In, MarshalAs(UnmanagedType.LPWStr)] String contentType);
82[return: MarshalAs(UnmanagedType.BStr)] String Response_GetCharSet();
83void Response_SetCharSet([In, MarshalAs(UnmanagedType.LPWStr)] String charSet);
84[return: MarshalAs(UnmanagedType.BStr)] String Response_GetCacheControl();
85void Response_SetCacheControl([In, MarshalAs(UnmanagedType.LPWStr)] String cacheControl);
86[return: MarshalAs(UnmanagedType.BStr)] String Response_GetStatus();
87void Response_SetStatus([In, MarshalAs(UnmanagedType.LPWStr)] String status);
96[return: MarshalAs(UnmanagedType.Interface)] Object Server_CreateObject([In, MarshalAs(UnmanagedType.LPWStr)] String progId);
97[return: MarshalAs(UnmanagedType.BStr)] String Server_MapPath([In, MarshalAs(UnmanagedType.LPWStr)] String logicalPath);
98[return: MarshalAs(UnmanagedType.BStr)] String Server_HTMLEncode([In, MarshalAs(UnmanagedType.LPWStr)] String str);
99[return: MarshalAs(UnmanagedType.BStr)] String Server_URLEncode([In, MarshalAs(UnmanagedType.LPWStr)] String str);
100[return: MarshalAs(UnmanagedType.BStr)] String Server_URLPathEncode([In, MarshalAs(UnmanagedType.LPWStr)] String str);
103void Server_Execute([In, MarshalAs(UnmanagedType.LPWStr)] String url);
104void Server_Transfer([In, MarshalAs(UnmanagedType.LPWStr)] String url);
107[return: MarshalAs(UnmanagedType.BStr)] String Session_GetID();
115[return: MarshalAs(UnmanagedType.BStr)] String Session_GetContentsNames();
116[return: MarshalAs(UnmanagedType.BStr)] String Session_GetStaticNames();
117Object Session_GetContentsObject([In, MarshalAs(UnmanagedType.LPWStr)] String name);
118void Session_SetContentsObject([In, MarshalAs(UnmanagedType.LPWStr)] String name, [In]Object obj);
119void Session_RemoveContentsObject([In, MarshalAs(UnmanagedType.LPWStr)] String name);
121Object Session_GetStaticObject([In, MarshalAs(UnmanagedType.LPWStr)] String name);
144private String _sessionId; // to run session on the same STA thread
163private AspCompatApplicationStep(HttpContext context, HttpApplication app, String sessionId, EventHandler codeEventHandler, Object codeEventSource, EventArgs codeEventArgs) {
298internal static void CheckThreadingModel(String progidDisplayName, Guid clsid) {
304String key = CacheInternal.PrefixAspCompatThreading + progidDisplayName;
305String threadingModel = (String)cacheInternal.Get(key);
312threadingModel = (String)regKey.GetValue("ThreadingModel");
322threadingModel = String.Empty;
372internal static void RaiseAspCompatEvent(HttpContext context, HttpApplication app, String sessionId, EventHandler eventHandler, Object source, EventArgs eventArgs) {
464private static String EncodeTab(String value) {
465if (String.IsNullOrEmpty(value) || value.IndexOfAny(TabOrBackSpace) < 0) {
471private static String EncodeTab(object value) {
472return EncodeTab((String)value);
475private static String CollectionToString(NameValueCollection c) {
479return String.Empty;
484String key = EncodeTab(c.GetKey(i));
485String[] vv = c.GetValues(i);
500private static String CookiesToString(HttpCookieCollection cc) {
513String name = EncodeTab(c.Name);
514String value = EncodeTab(c.Value);
529String key = cv.GetKey(j);
530if (!String.IsNullOrEmpty(key)) {
553private static String StringArrayToString(String[] ss) {
568private static String EnumKeysToString(IEnumerator e) {
582private static String DictEnumKeysToString(IDictionaryEnumerator e) {
608String IManagedContext.Application_GetContentsNames() {
612String IManagedContext.Application_GetStaticNames() {
616Object IManagedContext.Application_GetContentsObject(String name) {
620void IManagedContext.Application_SetContentsObject(String name, Object obj) {
624void IManagedContext.Application_RemoveContentsObject(String name) {
632Object IManagedContext.Application_GetStaticObject(String name) {
636String IManagedContext.Request_GetAsString(int what) {
637String s = String.Empty;
645return String.Empty;
653String IManagedContext.Request_GetCookiesAsString() {
665String IManagedContext.Response_GetCookiesAsString() {
669void IManagedContext.Response_AddCookie(String name) {
673void IManagedContext.Response_SetCookieText(String name, String text) {
677void IManagedContext.Response_SetCookieSubValue(String name, String key, String value) {
681void IManagedContext.Response_SetCookieExpires(String name, double dtExpires) {
685void IManagedContext.Response_SetCookieDomain(String name, String domain) {
689void IManagedContext.Response_SetCookiePath(String name, String path) {
693void IManagedContext.Response_SetCookieSecure(String name, int secure) {
697void IManagedContext.Response_Write(String text) {
705void IManagedContext.Response_Redirect(String url) {
709void IManagedContext.Response_AddHeader(String name, String value) {
713void IManagedContext.Response_Pics(String value) {
729void IManagedContext.Response_AppendToLog(String entry) {
733String IManagedContext.Response_GetContentType() {
737void IManagedContext.Response_SetContentType(String contentType) {
741String IManagedContext.Response_GetCharSet() {
745void IManagedContext.Response_SetCharSet(String charSet) {
749String IManagedContext.Response_GetCacheControl() {
753void IManagedContext.Response_SetCacheControl(String cacheControl) {
757String IManagedContext.Response_GetStatus() {
761void IManagedContext.Response_SetStatus(String status) {
793Object IManagedContext.Server_CreateObject(String progId) {
797String IManagedContext.Server_MapPath(String logicalPath) {
801String IManagedContext.Server_HTMLEncode(String str) {
805String IManagedContext.Server_URLEncode(String str) {
809String IManagedContext.Server_URLPathEncode(String str) {
821void IManagedContext.Server_Execute(String url) {
825void IManagedContext.Server_Transfer(String url) {
833String IManagedContext.Session_GetID() {
865String IManagedContext.Session_GetContentsNames() {
869String IManagedContext.Session_GetStaticNames() {
873Object IManagedContext.Session_GetContentsObject(String name) {
877void IManagedContext.Session_SetContentsObject(String name, Object obj) {
881void IManagedContext.Session_RemoveContentsObject(String name) {
889Object IManagedContext.Session_GetStaticObject(String name) {
Util\SmtpMail.cs (48)
46private String _progId;
49internal LateBoundAccessHelper(String progId) {
74internal Object CallMethod(Object obj, String methodName, Object[] args) {
83internal static Object CallMethodStatic(Object obj, String methodName, Object[] args) {
87private static Object CallMethod(Type type, Object obj, String methodName, Object[] args) {
98internal Object GetProp(Object obj, String propName) {
107internal static Object GetPropStatic(Object obj, String propName) {
111private static Object GetProp(Type type, Object obj, String propName) {
115internal void SetProp(Object obj, String propName, Object propValue) {
124internal static void SetPropStatic(Object obj, String propName, Object propValue) {
128private static void SetProp(Type type, Object obj, String propName, Object propValue) {
134internal void SetProp(Object obj, String propName, Object propKey, Object propValue) {
143internal static void SetPropStatic(Object obj, String propName, Object propKey, Object propValue) {
147private static void SetProp(Type type, Object obj, String propName, Object propKey, Object propValue) {
209String k = (String)e.Key;
210String v = (String)e.Value;
221_helper.SetProp(newMail, "Body", (message.Body != null) ? message.Body : String.Empty);
242internal static void Send(String from, String to, String subject, String messageText) {
270private static void SetField(Object m, String name, String value) {
326String importance = null;
353SetField(m, (String)e.Key, (String)e.Value);
366_helper.SetProp(m, "TextBody", String.Empty);
382if (!String.IsNullOrEmpty(server) || message.Fields.Count > 0) {
388if (!String.IsNullOrEmpty(server)) {
393LateBoundAccessHelper.SetPropStatic(config, "Fields", (String)e.Key, e.Value);
420internal static void Send(String from, String to, String subject, String messageText) {
431private static String _server;
437public static String SmtpServer {
439String s = _server;
440return (s != null) ? s : String.Empty;
454public static void Send(String from, String to, String subject, String messageText) {
575private String _filename;
582public String Filename { get { return _filename; } }
593public MailAttachment(String filename)
604public MailAttachment(String filename, MailEncoding encoding)
WebPageTraceListener.cs (7)
27if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
37if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
47if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
57if (Filter != null && !Filter.ShouldTrace(null, String.Empty, TraceEventType.Verbose, 0, message, null, null, null))
65public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType severity, int id, string message) {
80public override void TraceEvent(TraceEventCache eventCache, String source, TraceEventType severity, int id, string format, params object[] args) {
81TraceEvent(eventCache, source, severity, id, String.Format(CultureInfo.InvariantCulture, format, args));
WorkerRequest.cs (78)
416public abstract String GetUriPath(); // "/foo/page.aspx/tail"
421public abstract String GetQueryString(); // "param=bar"
427public abstract String GetRawUrl(); // "/foo/page.aspx/tail?param=bar"
432public abstract String GetHttpVerbName(); // "GET"
437public abstract String GetHttpVersion(); // "HTTP/1.1"
443public abstract String GetRemoteAddress(); // client's ip address
453public abstract String GetLocalAddress(); // server's ip address
460internal virtual String GetLocalPortAsString() {
469String remoteAddress = GetRemoteAddress();
472if (String.IsNullOrEmpty(remoteAddress))
487internal static String GetRawUrlHelper(String cacheUrl) {
532public virtual String GetRemoteName() {
541public virtual String GetServerName() {
571public virtual String GetAppPoolID() {
600String logonUser = GetServerVariable("LOGON_USER");
601String authType = GetServerVariable("AUTH_TYPE");
633public virtual String GetProtocol() {
641public virtual String GetFilePath() {
656public virtual String GetFilePathTranslated() {
667public virtual String GetPathInfo() {
669return String.Empty;
677public virtual String GetAppPath() {
687public virtual String GetAppPathTranslated() {
724String contentLength = GetKnownRequestHeader(HeaderContentLength);
795public virtual String GetKnownRequestHeader(int index) {
803public virtual String GetUnknownRequestHeader(String name) {
812public virtual String[][] GetUnknownRequestHeaders() {
820public virtual String GetServerVariable(String name) {
855public virtual String MapPath(String virtualPath) {
863public virtual String MachineConfigPath {
873public virtual String RootWebConfigPath {
883public virtual String MachineInstallDirectory {
915public abstract void SendStatus(int statusCode, String statusDescription);
919internal virtual void SendStatus(int statusCode, int subStatusCode, String statusDescription) {
926public abstract void SendKnownResponseHeader(int index, String value);
932public abstract void SendUnknownResponseHeader(String name, String value);
968public abstract void SendResponseFromFile(String filename, long offset, long length);
976internal virtual void TransmitFile(String filename, long length, bool isImpersonating) {
980internal virtual void TransmitFile(String filename, long offset, long length, bool isImpersonating) {
1021String url, String method, String headers,
1023bool addUserIndo, IntPtr token, String name, String authType,
1179String contentLength = GetKnownRequestHeader(HeaderContentLength);
1217public static String GetStatusDescription(int code) {
1226return String.Empty;
1231private static readonly String[][] s_HTTPStatusDescriptions = new String[][]
1235new String[]
1242new String[]
1254new String[]
1262/* 306 */ String.Empty,
1266new String[]
1286/* 418 */ String.Empty,
1287/* 419 */ String.Empty,
1288/* 420 */ String.Empty,
1289/* 421 */ String.Empty,
1295new String[]
1303/* 506 */ String.Empty,
1318public static int GetKnownRequestHeaderIndex(String header) {
1333public static String GetKnownRequestHeaderName(int index) {
1337internal static String GetServerVariableNameFromKnownRequestHeaderIndex(int index) {
1347public static int GetKnownResponseHeaderIndex(String header) {
1362public static String GetKnownResponseHeaderName(int index) {
1373static private String[] s_serverVarFromRequestHeaderNames = new String[RequestHeaderMaximum];
1374static private String[] s_requestHeaderNames = new String[RequestHeaderMaximum];
1375static private String[] s_responseHeaderNames = new String[ResponseHeaderMaximum];
1384String headerName,
1385String serverVarName) {
Mobile\MobileCapabilities.cs (23)
25String evalParameter);
29private const String _kDeviceFiltersConfig = "system.web/deviceFilters";
46private bool HasComparisonEvaluator(String evaluatorName, out bool result)
49String evaluator;
50String argument;
69private bool HasDelegatedEvaluator(String evaluatorName, String parameter,
92private bool HasItem(String evaluatorName, String parameter,
96String item;
109private bool HasProperty(String evaluatorName, String parameter,
120String propertyValue = propertyDescriptor.GetValue(this).ToString();
123result = (String.Equals(propertyValue, parameter, compareOption));
128private bool IsComparisonEvaluator(String evaluatorName)
145public bool HasCapability(String delegateName, String optionalParameter)
150if(String.IsNullOrEmpty(delegateName))
159String hashKey = ((currentFilters == null) ? "null" : currentFilters.GetHashCode().ToString(CultureInfo.InvariantCulture))
299public static readonly String PreferredRenderingTypeHtml32 = "html32";
301public static readonly String PreferredRenderingTypeWml11 = "wml11";
303public static readonly String PreferredRenderingTypeWml12 = "wml12";
305public static readonly String PreferredRenderingTypeChtml10 = "chtml10";
Mobile\MobileDeviceCapabilitiesSectionHandler.cs (17)
66String name = helper.RemoveStringAttribute("name", true);
67String className = helper.RemoveStringAttribute("type", false);
71const String methodAttributeName = "method";
72String methodName = helper.RemoveStringAttribute(methodAttributeName, false);
73String capabilityName = helper.RemoveStringAttribute("compare", false);
74String argumentValue = helper.RemoveStringAttribute("argument", false);
78if(className == String.Empty)
90if(methodName == String.Empty)
98String msg;
117String msg =
132String msg =
142String capabilityName = helper.RemoveStringAttribute("compare", false);
143String argumentValue = helper.RemoveStringAttribute("argument", false);
144String methodName = helper.RemoveStringAttribute("method", false);
148if(String.IsNullOrEmpty(capabilityName))
168String msg = SR.GetString(SR.DevCapSect_UnableAddDelegate,
176String msg = SR.GetString(SR.DevCapSect_UnrecognizedTag,
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (24)
34private const String _postedFromOtherFile = ".";
49String type = ((MobileCapabilities)context.Request.Browser).PreferredRenderingType;
63String target,
64String argument)
73protected override String EventSourceKey
82protected override String EventArgumentKey
104writer.WriteHiddenField(EventSourceKey, String.Empty);
128String postEventSourceID,
129String postEventArgumentID,
141else if (String.Compare(request.HttpMethod, "POST", StringComparison.OrdinalIgnoreCase) == 0)
167String postEventSourceID,
168String postEventArgumentID)
175String name = queryString.GetKey(i);
245String postEventSourceID,
246String postEventArgumentID)
257String name = form.GetKey(i);
311String value = form.Get(i);
312if (!String.IsNullOrEmpty(value))
351private bool AddEmptyStringValues(String [] keys,
355foreach (String key in keys)
361targetCollection.Add(key, String.Empty);
368String sourceKey,
371String [] values = sourceCollection.GetValues(sourceKey);
372foreach (String value in values)
UI\MobileControls\Adapters\EmptyTextWriter.cs (13)
160public override void Write(String format, Object arg0)
165if (!IsWhiteSpace(format) && !IsWhiteSpace(String.Format(CultureInfo.CurrentCulture, format, arg0)))
171public override void Write(String format, Object arg0, Object arg1)
176if (!IsWhiteSpace(format) && !IsWhiteSpace(String.Format(CultureInfo.CurrentCulture, format, arg0, arg1)))
182public override void Write(String format, params object[] arg)
187if (!IsWhiteSpace(format) && !IsWhiteSpace(String.Format(CultureInfo.CurrentCulture, format, arg)))
285public override void WriteLine(String format, Object arg0)
290if (!IsWhiteSpace(format) && !IsWhiteSpace(String.Format(CultureInfo.CurrentCulture, format, arg0)))
296public override void WriteLine(String format, Object arg0, Object arg1)
301if (!IsWhiteSpace(format) && !IsWhiteSpace(String.Format(CultureInfo.CurrentCulture, format, arg0, arg1)))
307public override void WriteLine(String format, params object[] arg)
312if (!IsWhiteSpace(format) && !IsWhiteSpace(String.Format(CultureInfo.CurrentCulture, format, arg)))
334private static bool IsWhiteSpace(String s)
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (18)
40internal protected static readonly String BackToList = "__back";
42internal protected static readonly String ShowMoreFormat = "__more{0}";
44internal protected static readonly String ShowMore = "__more";
213String eventArgument =
216String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index.ToString(CultureInfo.InvariantCulture));
239String moreText = Control.MoreText.Length == 0 ?
243String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index),
306String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index),
323String moreText = Control.MoreText.Length == 0 ?
327RenderPostBackEventAsAttribute(writer, "href", String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index));
423String backCommandText = Control.BackCommandText.Length == 0 ?
490String backCommandText = Control.BackCommandText.Length == 0 ?
508String argument,
509String linkText,
531public override bool HandlePostBackEvent(String eventArgument)
586private static int ParseItemArg(String arg)
658String defaultCommand = Control.DefaultCommand;
664String.Compare(defaultCommand, Control.Commands[0].Name, StringComparison.OrdinalIgnoreCase) == 0))
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (51)
55private String _optionMenuName = null;
57private String _linkText = null;
58private String _targetUrl = null;
59private String _softkeyLabel = null;
111String filePathSuffix =
146Write(String.Format(CultureInfo.InvariantCulture, _loopDetectionCard, Page.ActiveForm.ClientID));
150private String _cachedFormQueryString;
152protected override String CalculateFormQueryString()
158String queryString = null;
166String ufps = Page.UniqueFilePathSuffix;
180queryString = String.Concat(ufps, "&", queryString);
191private const String _loopDetectionCard =
241public override void RenderText(String text, bool breakAfter, bool encodeText)
329public override void RenderBeginHyperlink(String targetUrl,
331String softkeyLabel,
362_linkText = String.Empty;
381_linkText = String.Empty;
475public override void RenderTextBox(String id,
476String value,
477String format,
478String title,
530public override void RenderImage(String source,
531String localSource,
532String alternateText,
590public override void RenderBeginPostBack(String softkeyLabel,
613_linkText = String.Empty;
630_linkText = String.Empty;
641public override void RenderEndPostBack(String target, String argument, WmlPostFieldType postBackType, bool includeVariables, bool breakAfter)
813public override void RenderBeginSelect(String name, String iname, String ivalue, String title, bool multiSelect)
872public override void RenderSelectOption(String text)
885public override void RenderSelectOption(String text, String value)
902String menuTarget;
903String menuTargetClientID;
942String GoLabel = SR.GetString(SR.WmlMobileTextWriterGoLabel);
966protected override String CalculateFormPostBackUrl(bool externalSubmit, ref bool encode)
968String url = CurrentForm.Action;
1128String OkLabel = SR.GetString(SR.WmlMobileTextWriterOKLabel);
1146String nextCardId = "card" + (_currentCardIndex + 1).ToString(CultureInfo.InvariantCulture);
1173String formTitle = CurrentForm.Title;
1200private void RenderSoftkey(String doType, UpSoftkey softkey)
1240public String Label;
1245public String TargetUrl;
1251public String Target;
1252public String Argument;
1259public String Id;
1270public String MenuTarget = null;
UI\MobileControls\Adapters\WmlControlAdapter.cs (27)
67String targetUrl,
68String softkeyLabel,
71String text,
81String targetUrl,
82String softkeyLabel,
100String postback = DeterminePostBack(targetUrl);
108String prefix = Constants.FormIDPrefix;
111String formID = targetUrl.Substring(prefix.Length);
122String formsAuthCookieName = FormsAuthentication.FormsCookieName;
127foreach(String name in dictionary.Keys)
166protected void RenderEndLink(WmlMobileTextWriter writer, String targetUrl, bool breakAfter)
168String postback = DeterminePostBack(targetUrl);
181protected String DeterminePostBack(String target)
183String postback = null;
184String prefix = Constants.FormIDPrefix;
187String formID = target.Substring(prefix.Length);
207String softkeyLabel,
208String text,
218String argument,
219String softkeyLabel,
221String text,
231String argument,
232String softkeyLabel,
234String text,
268protected virtual String GetPostBackValue()
273internal String GetControlPostBackValue(MobileControl ctl)
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (95)
64private const String _largeTag = "big";
65private const String _smallTag = "small";
66private const String _boldTag = "b";
67private const String _italicTag = "i";
68internal const String _postBackCardPrefix = "__pbc";
69private const String _postBackWithVarsCardId = "__pbc1";
70private const String _postBackWithoutVarsCardId = "__pbc2";
71internal const String _postBackEventTargetVarName = "mcsvt";
72internal const String _postBackEventArgumentVarName = "mcsva";
73private const String _shortNamePrefix = "mcsv";
227public void RenderText(String text)
234public void RenderText(String text, bool breakAfter)
240public virtual void RenderText(String text, bool breakAfter, bool encodeText)
261internal String EscapeAmpersand(String url)
264const String ampEscaped = "amp;";
286public virtual void RenderBeginHyperlink(String targetUrl,
288String softkeyLabel,
332public virtual void RenderTextBox(String id,
333String value,
334String format,
335String title,
397public virtual void RenderImage(String source,
398String localSource,
399String alternateText,
412WriteTextEncodedAttribute("alt", alternateText != null ? alternateText : String.Empty);
422public virtual void RenderBeginPostBack(String softkeyLabel,
442public virtual void RenderEndPostBack(String target,
443String argument,
469public virtual void RenderBeginSelect(String name, String iname, String ivalue, String title, bool multiSelect)
530public virtual void RenderSelectOption(String text)
541public virtual void RenderSelectOption(String text, String value)
568public void AddFormVariable(String clientID, String value, bool generateRandomID)
605public virtual bool IsValidSoftkeyLabel(String label)
613public virtual void RenderGoAction(String target,
614String argument,
681String url = CalculateFormPostBackUrl(externalSubmit, ref encode);
683String queryString = CalculateFormQueryString();
743String pageState = Page.ClientViewState;
800WritePostField(ctl.UniqueID, (String)value);
810String hiddenVariablePrefix = MobilePage.HiddenVariablePrefix;
815WritePostField(hiddenVariablePrefix + (String)entry.Key, (String)entry.Value);
846protected virtual String CalculateFormPostBackUrl(bool externalSubmit, ref bool encode)
848String url = CurrentForm.Action;
865internal String ReplaceFormsCookieWithVariable(String queryString)
867String formsAuthCookieName = FormsAuthentication.FormsCookieName;
868if(!String.IsNullOrEmpty(formsAuthCookieName))
886private String _cachedFormQueryString;
888protected virtual String CalculateFormQueryString()
895String queryString = null;
903String ufps = Page.UniqueFilePathSuffix;
906queryString = String.Concat(ufps, "&", queryString);
939String title = form.Title;
963WriteAttribute("name", (String)entry.Key);
964WriteTextEncodedAttribute("value", (String)entry.Value);
1040protected void RenderFormDoEvent(String doType, String arg, WmlPostFieldType postBackType, String text)
1046protected void RenderDoEvent(String doType, String target, String arg, WmlPostFieldType postBackType, String text, bool includeVariables)
1123String alignment;
1217public override void WriteAttribute(String attribute, String value, bool encode)
1302protected void WriteTextEncodedAttribute(String attribute, String value)
1345public override void WriteEncodedUrl(String url)
1357String s = url.Substring(i);
1372public override void WriteEncodedText(String text)
1388public void WriteText(String text, bool encodeText)
1400private void WritePlainText(String text)
1421public void WritePostField(String name, String value)
1427public void WritePostFieldVariable(String name, String arg)
1433public void WritePostField(String name, String value, WmlPostFieldType type)
1472protected internal String MapClientIDToShortName(String clientID, bool generateRandomID)
1481String lookup = (String)_controlShortNames[clientID];
1505String shortName;
1512shortName = String.Empty;
1515shortName = String.Concat(_shortNamePrefix, shortName, _controlShortNames.Count.ToString(CultureInfo.InvariantCulture));
1538private String GetRandomID(int length)
1552private bool NameConflicts(String name)
1643String RequiresNoSoftkeyLabelsString = Device["requiresNoSoftkeyLabels"];
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (90)
35private bool IsRooted(String basepath) {
68String argument,
69String linkText) {
78String argument,
79String linkText,
80String accessKey) {
88String argument,
89String linkText,
90String accessKey,
92String cssClass) {
100if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
102String className = writer.GetCssFormatClassName(style);
118if ((String)Device[XhtmlConstants.BreaksOnInlineElements] == "true") {
135protected virtual void RenderBeginLink(XhtmlMobileTextWriter writer, String target, String accessKey, Style style, String cssClass) {
141protected virtual void RenderBeginLink(XhtmlMobileTextWriter writer, String target, String accessKey, Style style, String cssClass, String title) {
150String className = writer.GetCssFormatClassName(style);
165protected virtual void RenderBeginLink(XhtmlMobileTextWriter writer, String target) {
166String attributeValue = ((IAttributeAccessor)Control).GetAttribute(XhtmlConstants.AccessKeyCustomAttribute);
172private void RenderHrefValue (XhtmlMobileTextWriter writer, String target) {
196if ((String)Device["requiresAbsolutePostbackUrl"] == "true"
198String templateSourceDirectory = Page.TemplateSourceDirectory;
199String prefix = writer.EncodeUrlInternal(Page.Response.ApplyAppPathModifier(Page.TemplateSourceDirectory));
206if ((String)Device[XhtmlConstants.SupportsUrlAttributeEncoding] != "false") {
221private void RenderFormNavigationHrefValue (XhtmlMobileTextWriter writer, String target) {
222String prefix = Constants.FormIDPrefix;
224String name = target.Substring(prefix.Length);
233foreach (String name in dictionary.Keys) {
235String amp = (String)Device[XhtmlConstants.SupportsUrlAttributeEncoding] != "false" ? "&" : "&";
309ConditionalEnterStyle(writer, style, String.Empty);
313protected virtual void ConditionalEnterStyle(XhtmlMobileTextWriter writer, Style style, String tag) {
314if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
333if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
345if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
357if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
369if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
381if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
400protected virtual String StyleSheetLocationAttributeValue {
402return(String) Page.ActiveForm.CustomAttributes[XhtmlConstants.StyleSheetLocationCustomAttribute];
407protected virtual String StyleSheetStorageApplicationSetting {
409return(String) ConfigurationManager.AppSettings[XhtmlConstants.CssStateLocationAppSettingKey];
421if ((String)Device[XhtmlConstants.RequiresOnEnterForward] == "true") {
425String browserCap = Device[XhtmlConstants.InternalStyleConfigSetting];
427if (browserCap == null || !String.Equals(browserCap, "false", StringComparison.OrdinalIgnoreCase))
448if (String.Compare(StyleSheetStorageApplicationSetting, XhtmlConstants.CacheStyleSheetValue, StringComparison.OrdinalIgnoreCase) == 0) {
467if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
470String classAttribute = (String) Control.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
486if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
489String classAttribute = (String) Control.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
508String classAttribute = (String) Control.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
521if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
524String classAttribute = (String) Control.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
527if ((String)Device["usePOverDiv"] == "true") {
548if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
551String classAttribute = (String) Control.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
554if ((String)Device["usePOverDiv"] == "true") {
581String attributeName) {
587String attributeName, String markupAttributeName) {
588String attributeValue = ((IAttributeAccessor)Control).GetAttribute(attributeName);
596protected virtual String GetCustomAttributeValue(String attributeName) {
601protected virtual String GetCustomAttributeValue(MobileControl control, String attributeName) {
611protected virtual void RenderOpeningListTag(XhtmlMobileTextWriter writer, String tagName) {
612String classAttribute = (String) Control.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
613if (CssLocation == StyleSheetLocation.PhysicalFile && (String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
626else if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
638protected virtual void RenderClosingListTag(XhtmlMobileTextWriter writer, String tagName) {
639if (CssLocation == StyleSheetLocation.PhysicalFile && (String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
643else if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
653if ((String)Device[XhtmlConstants.BreaksOnBlockElements] != "false") {
660if ((String)Device[XhtmlConstants.BreaksOnInlineElements] == "true") {
667protected virtual void ConditionalClearCachedEndTag(XhtmlMobileTextWriter writer, String s) {
718protected String PreprocessQueryString(String queryString) {
752private String RemoveQueryStringPair(String name, String queryString) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicObjectListAdapter.cs (40)
29internal protected static readonly String BackToList = "__back";
31internal protected static readonly String ShowMoreFormat = "__more{0}";
33internal protected static readonly String ShowMore = "__more";
89public override bool HandlePostBackEvent(String eventArgument) {
141String controlDefaultCommand = Control.DefaultCommand;
180(String.Compare (Control.DefaultCommand, Control.Commands[0].Name, true /* ignore case */, CultureInfo.CurrentCulture) == 0);
191private static int ParseItemArg(String arg) {
260String cssClass = GetCustomAttributeValue(XhtmlConstants.CssClassCustomAttribute);
261String subCommandClass = GetCustomAttributeValue(XhtmlConstants.CssCommandClassCustomAttribute);
270String controlBCT = Control.BackCommandText;
271String backCommandText = (controlBCT == null || controlBCT.Length == 0) ?
294String cssClass = GetCustomAttributeValue(XhtmlConstants.CssClassCustomAttribute);
295String labelClass = GetCustomAttributeValue(XhtmlConstants.CssLabelClassCustomAttribute);
330String commandClass = GetCustomAttributeValue(XhtmlConstants.CssCommandClassCustomAttribute);
333if ((String) Device[XhtmlConstants.BreaksOnInlineElements] != "true") {
342if ((String) Device[XhtmlConstants.BreaksOnInlineElements] != "true") {
346String controlBCT = Control.BackCommandText;
347String backCommandText = controlBCT == null || controlBCT.Length == 0 ?
353if ((String) Device[XhtmlConstants.BreaksOnInlineElements] != "true") {
446String cssClass = GetCustomAttributeValue(XhtmlConstants.CssClassCustomAttribute);
447String labelClass = GetCustomAttributeValue(XhtmlConstants.CssLabelClassCustomAttribute);
487String accessKey = GetCustomAttributeValue(item, XhtmlConstants.AccessKeyCustomAttribute);
488String itemClass = GetCustomAttributeValue(item, XhtmlConstants.CssClassCustomAttribute);
494String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index),
511String commandClass = GetCustomAttributeValue(XhtmlConstants.CssCommandClassCustomAttribute);
515if ((String)Device[XhtmlConstants.BreaksOnInlineElements] != "true") {
521String controlMT = Control.MoreText;
522String moreText = (controlMT == null || controlMT.Length == 0) ?
526String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index),
534if ((String)Device[XhtmlConstants.BreaksOnInlineElements] != "true") {
556String accessKey = GetCustomAttributeValue(item, XhtmlConstants.AccessKeyCustomAttribute);
557String cssClass = GetCustomAttributeValue(item, XhtmlConstants.CssClassCustomAttribute);
558String subCommandClass = GetCustomAttributeValue(XhtmlConstants.CssCommandClassCustomAttribute);
569String eventArgument = HasDefaultCommand() ? item.Index.ToString(CultureInfo.InvariantCulture) : String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index.ToString(CultureInfo.InvariantCulture));
580String controlMT = Control.MoreText;
581String moreText = (controlMT == null || controlMT.Length == 0) ? GetDefaultLabel(MoreLabel) : controlMT;
583String.Format(CultureInfo.InvariantCulture, ShowMoreFormat, item.Index),
594String cssClass = GetCustomAttributeValue(XhtmlConstants.CssClassCustomAttribute);
595String labelClass = GetCustomAttributeValue(XhtmlConstants.CssLabelClassCustomAttribute);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (49)
66public virtual String EventArgumentKey {
73public virtual String EventSourceKey {
111String sourceKey,
113String [] values = sourceCollection.GetValues(sourceKey);
114foreach (String value in values) {
121String postEventSourceID,
122String postEventArgumentID) {
129String name = form.GetKey(i);
174String postEventSourceID,
175String postEventArgumentID) {
180String name = queryString.GetKey(i);
232String cssLocation = (String) Page.ActiveForm.CustomAttributes[XhtmlConstants.StyleSheetLocationCustomAttribute];
246String queryStringValue = GetCssQueryStringValue(writer);
254bool requiresComments = (String)Device["requiresCommentInStyleElement"] == "true";
280String postEventSourceID,
281String postEventArgumentID,
290else if (String.Compare(request.HttpMethod, "POST", StringComparison.OrdinalIgnoreCase) == 0) {
307String type = ((MobileCapabilities)context.Request.Browser).PreferredRenderingType;
308return String.Equals(type, "xhtml-basic", StringComparison.OrdinalIgnoreCase) ||
309String.Equals(type, "xhtml-mp", StringComparison.OrdinalIgnoreCase) ||
310String.Equals(type, "wml20", StringComparison.OrdinalIgnoreCase);
314return(String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] == "true";
317private String GetCssQueryStringValue(XhtmlMobileTextWriter writer) {
343writer.UseDivsForBreaks = (String)Device[XhtmlConstants.BreaksOnInlineElements] == "true";
344writer.SuppressNewLine = (String)Device[XhtmlConstants.RequiresNewLineSuppression] == "true";
345writer.SupportsNoWrapStyle = (String)Device[XhtmlConstants.SupportsNoWrapStyle] != "false";
377String supportsXmlDeclaration = Device["supportsXmlDeclaration"];
380!String.Equals(supportsXmlDeclaration, "false", StringComparison.OrdinalIgnoreCase)) {
423else if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
424(String)Device[XhtmlConstants.SupportsBodyClassAttribute] != "false") {
434String hiddenVariablePrefix = MobilePage.HiddenVariablePrefix;
437writer.WriteUrlParameter(hiddenVariablePrefix + (String)entry.Key,
438(String)entry.Value);
447String cssClass = (String) activeForm.CustomAttributes[XhtmlConstants.CssClassCustomAttribute];
449if (cssClass != null && (String)Device["supportsBodyClassAttribute"] != "false") {
456else if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
457(String)Device[XhtmlConstants.SupportsBodyClassAttribute] != "false") {
462if ((String)Device[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
463(String)Device[XhtmlConstants.SupportsBodyClassAttribute] == "false") {
471String target,
472String argument) {
474String amp = (String)Device[XhtmlConstants.SupportsUrlAttributeEncoding] == "false" ? "&" : "&";
476if ((String)Device["requiresAbsolutePostbackUrl"] == "true") {
487String pageState = Page.ClientViewState;
505String queryStringText = PreprocessQueryString(Page.QueryStringText);
509if ((String)Device[XhtmlConstants.SupportsUrlAttributeEncoding] != "false") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (63)
44private String _cacheKey;
45private String _cachedMarkup;
72internal String CachedEndTag {
79public virtual String CacheKey {
113public String CustomBodyStyles {
124public virtual String SessionKey {
167public virtual void AddOnEnterForwardSetVar(String var) {
168AddOnEnterForwardSetVar(var, String.Empty);
172public virtual void AddOnEnterForwardSetVar(String var, String value) {
173_wmlOnEnterForwardVarNames.Add(new String[2]{var, value});
196internal bool DiffersFromCurrentPhysicalCssClass(String cssClass) {
199String.Compare(cssClass, (String)_physicalCssClasses.Peek(), StringComparison.Ordinal) != 0;
202private void EncodeAttributeValue(String value, StringBuilder encodedValue) {
208internal string EncodeUrlInternal(String url) {
229String classKey = styleClass.GetClassDefinition ();
277internal void EnterStyle(Style style, String styleTag) {
289internal void EnterStyle(XhtmlStyleClass styleClass, String styleTag) {
301internal void EnterStyleInternal (Style style, String styleTag, StyleFilter filter) {
305internal void EnterStyleInternal (XhtmlStyleClass styleClass, String styleTag, NameValueCollection additionalAttributes) {
309internal void EnterStyleInternal (XhtmlStyleClass styleClass, String styleTag, NameValueCollection additionalAttributes, bool forceTag) {
316_styleStack.Push (new StylePair (String.Empty, styleClass));
323_styleStack.Push (new StylePair (String.Empty, styleClass));
334foreach (String key in additionalAttributes.Keys) {
342internal void EnterStyleInternal (Style style, String styleTag, StyleFilter filter, NameValueCollection additionalAttributes) {
388internal String GetCssFormatClassName(Style style) {
422foreach (String key in _orderedStyleClassKeys) {
429private String GetWmlOnEventSubtree() {
431return String.Empty;
436foreach (String[] varInfo in _wmlOnEnterForwardVarNames) {
437String varName = varInfo[0];
438String varValue = varInfo[1];
451private void HandleBreakForTag(String tag) {
460private bool IsBlockElement(String tag){
508internal String PopPhysicalCssClass() {
509return(String)_physicalCssClasses.Pop();
512internal void PushPhysicalCssClass(String cssClass) {
527String styleText = GetStyles();
532(cache [_cacheKey].GetType () != typeof (String) ||
533styleText != (String) cache [_cacheKey])) {
546String styleText = GetStyles();
551(session [_sessionKey].GetType () != typeof (String) ||
552styleText != (String) session [_sessionKey])) {
559public override void WriteAttribute(String attribute, String value, bool encode) {
587public override void WriteBeginTag(String tag) {
613WriteLine((String)_doctypeDeclarations[type]);
617public virtual void WriteEncodedAttributeValue(String value) {
624public override void WriteEndTag(String tag) {
633public override void WriteFullBeginTag(String tag) {
639public virtual void WriteHiddenField(String name, String value) {
649public virtual void WriteHiddenField(String name) {
662public override void WriteLine(String format, Object[] arg) {
672public override void WriteLine(String format, Object arg) {
682public override void WriteLine(String format, Object arg0, Object arg1) {
702public override void WriteLine(String s) {
802public virtual void WriteUrlParameter (String name, String value) {
820internal StylePair (String styleTag, XhtmlStyleClass styleClass) {
825internal StylePair (String styleTag, Style style, StyleFilter filter) {
831internal String Tag;
UI\MobileControls\Design\DeviceSpecificDesigner.cs (16)
38internal static readonly String _strictlyFormPanelContainmentErrorMessage =
41private const String _designTimeHTML =
50private const String _duplicateDesignTimeHTML =
64private const String _propertyOverridesPropName = "PropertyOverrides";
65private const String _dataBindingsPropName = "DataBindings";
79private static readonly String[] _templateFramesForForm =
80new String [] { Constants.HeaderTemplateTag, Constants.FooterTemplateTag };
82private static readonly String[] _templateFramesForPanel =
83new String [] { Constants.ContentTemplateTag };
160protected override String GetDesignTimeNormalHtml()
162String curChoice, message;
194return String.Format(CultureInfo.CurrentCulture, _duplicateDesignTimeHTML,
209return String.Format(CultureInfo.CurrentCulture, _designTimeHTML, _ds.Site.Name, curChoice, message);
222protected override String GetErrorMessage(out bool infoMode)
2800 != String.Compare(_ds.ID, _parentContainer.DeviceSpecific.ID, StringComparison.OrdinalIgnoreCase))
317protected override String[] GetTemplateFrameNames(int index)
UI\MobileControls\Design\MobileControlPersister.cs (13)
179PersistAttributes(sw, collItem, String.Empty, null);
253PersistAttributes(tagProps, propValue, String.Empty, null);
404foreach (String templateName in templateCollection.Keys) {
488string persistPrefix = String.Empty;
518properties = properties.Sort(new String[] {"Filter"});
610String persistValue = null;
614propName = enumerator.Key as String;
615persistValue = enumerator.Value as String;
628HttpUtility.HtmlEncode((String)persistValue, sw);
696String templateName = propDesc.Name;
701private static void PersistTemplateProperty(TextWriter sw, String templateName, ITemplate template)
715templateContent = String.Empty;
893PersistAttributes(sw, control, String.Empty, null);
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (47)
52private const String _htmlString = "html";
57private static readonly String _noChoiceText =
60private static readonly String _defaultChoiceText =
63private static readonly String _nonHtmlSchemaErrorMessage =
66private static readonly String _illFormedWarning =
69private const String _illFormedHtml =
72internal const String DefaultTemplateDeviceFilter = "__TemplateDeviceFilter__";
73private const String _templateDeviceFilterPropertyName = "TemplateDeviceFilter";
74private const String _appliedDeviceFiltersPropertyName = "AppliedDeviceFilters";
75private const String _propertyOverridesPropertyName = "PropertyOverrides";
76private const String _expressionsPropertyName = "Expressions";
77private const String _defaultDeviceSpecificIdentifier = "unique";
119protected String AppliedDeviceFilters
123return String.Empty;
271protected String PropertyOverrides
275return String.Empty;
284public String TemplateDeviceFilter
303if (String.IsNullOrEmpty(value) ||
386private void CheckTemplateName(String templateName)
405String[] templateNames = GetTemplateFrameNames(verb.Index);
513public sealed override String GetDesignTimeHtml()
521String errorMessage = GetErrorMessage(out infoMode);
529String designTimeHTML = null;
545protected virtual String GetDesignTimeErrorHtml(String errorMessage, bool infoMode)
551protected virtual String GetDesignTimeNormalHtml()
558protected override sealed String GetErrorDesignTimeHtml(Exception e)
563protected virtual String GetErrorMessage(out bool infoMode)
606public override String GetPersistInnerHtml()
608String persist = null;
628public override String GetTemplateContent(
630String templateName,
640String templateContent = String.Empty;
651templateContent = String.Format(CultureInfo.CurrentCulture, _illFormedHtml, _illFormedWarning);
658protected abstract String[] GetTemplateFrameNames(int index);
694this.TemplateDeviceFilter = (String) IMobileWebFormServices.GetCache(_control.ID, (Object)DefaultTemplateDeviceFilter);
698private bool IsCompleteHtml(String templateContent)
700if (!String.IsNullOrEmpty(templateContent))
815typeof(String),
825typeof(String),
833typeof(String),
851String templateName,
852String templateContent)
948String IDeviceSpecificDesigner.CurrentDeviceSpecificID
1014bool IDeviceSpecificDesigner.GetDeviceSpecific(String deviceSpecificParentID, out DeviceSpecific ds)
1021void IDeviceSpecificDesigner.SetDeviceSpecific(String deviceSpecificParentID, DeviceSpecific ds)
UI\MobileControls\Design\StylesEditorDialog.cs (46)
92String initialStyleName) : base (stylesheet.Site)
359new String[2]{"System.Web.UI.MobileControls.PagerStyle",
362foreach (String mobileStyle in mobileStyles)
365String[] subItems = {type.Name, type.Namespace};
371foreach (String key in styles)
377String[] subItems = {type.Name, type.Namespace};
402_currentNewStyleType = Type.GetType((String) _lvAvailableStyles.Items[0].SubItems[1].Text + "." +
432foreach (String key in styles)
484private String AutoIDStyle()
486String newStyleID = _currentNewStyleType.Name;
496private int StyleIndex(String name)
501if (String.Compare(name, styleNode.RuntimeStyle.Name, StringComparison.OrdinalIgnoreCase) == 0)
520_txtType.Text = String.Empty;
548documentElement.SetInnerHTML(String.Empty);
554tridentDocument.SetBgColor(String.Empty);
560documentElement.SetInnerHTML(String.Empty);
587String name = _previewStyle.Font.Name;
622String finalHTML = "<div align='center'><table width='100%' height='100%'><tr><td><p align='center'>" +
683String oldValue = e.Node.Text;
684String newValue = e.Label;
686String messageTitle = SR.GetString(SR.Style_ErrorMessageTitle);
689if (String.Compare(oldValue, newValue , StringComparison.OrdinalIgnoreCase) != 0 && StyleIndex(newValue) >= 0)
759String newStyleAutoID = AutoIDStyle();
800_currentNewStyleType = Type.GetType((String) _lvAvailableStyles.SelectedItems[0].SubItems[1].Text + "." +
853String message = SR.GetString(SR.StylesEditorDialog_DeleteStyleMessage);
854String caption = SR.GetString(SR.StylesEditorDialog_DeleteStyleCaption);
862String deletedStyle = ((StyleNode)SelectedStyle).RuntimeStyle.Name;
990String reference = currentStyle.StyleReference;
1009if (0 == String.Compare(style.Name, reference, StringComparison.OrdinalIgnoreCase))
1071String fontName = currentStyle.Font.Name;
1072String reference = currentStyle.StyleReference;
1082if (0 == String.Compare(style.Name, reference, StringComparison.OrdinalIgnoreCase))
1169private String _fullName;
1173private String _styleReference;
1211internal String FullName
1234String reference = RuntimeStyle.StyleReference;
1239if (0 == String.Compare(RuntimeStyle.Name, reference, StringComparison.OrdinalIgnoreCase))
1292private String _oldName;
1293private String _newName;
1296String oldName,
1297String newName)
1303internal String OldName
1311internal String NewName
1328private String _name;
1330internal StyleDeletedEventArgs(String name)
1335internal String Name
UI\MobileControls\Design\StyleSheetDesigner.cs (47)
52private const String _templatesStylePropName = "TemplateStyle";
53private const String _persistedStylesPropName = "PersistedStyles";
55private const String _designTimeHTML =
65private const String _specialCaseDesignTimeHTML =
86private static readonly String[][] _templateFrameNames =
87new String[][] {
88new String [] { Constants.HeaderTemplateTag, Constants.FooterTemplateTag },
89new String [] { Constants.ItemTemplateTag, Constants.AlternatingItemTemplateTag, Constants.ItemDetailsTemplateTag },
90new String [] { Constants.SeparatorTemplateTag },
91new String [] { Constants.ContentTemplateTag }
94private const String _templateStyle = "__TemplateStyle__";
162TemplateStyle = (String) IMobileWebFormServices.GetCache(_styleSheet.ID, _templateStyle);
164(String) IMobileWebFormServices.GetCache(
211String[] templateNames = GetTemplateFrameNames(verb.Index);
290protected override String[] GetTemplateFrameNames(int index)
468duplicateNamesList.Add((String)entry.Key);
473protected override String GetDesignTimeNormalHtml()
475String curStyle, message;
487String curChoice;
508String errorMsg = null;
509String errorIconUrl = null;
546return String.Format(CultureInfo.CurrentCulture, _specialCaseDesignTimeHTML,
565String cycledStyles = String.Empty;
577return String.Format(CultureInfo.CurrentCulture, _specialCaseDesignTimeHTML,
590return String.Format(CultureInfo.CurrentCulture, _designTimeHTML,
674foreach (String key in styles)
681String reference = style.StyleReference;
682String name = style.Name;
688if (0 == String.Compare(name, reference, StringComparison.OrdinalIgnoreCase))
728String IDeviceSpecificDesigner.CurrentDeviceSpecificID
767String styleName = (String) _mergedUI.CbStyles.SelectedItem;
777bool IDeviceSpecificDesigner.GetDeviceSpecific(String deviceSpecificParentID, out DeviceSpecific ds)
792void IDeviceSpecificDesigner.SetDeviceSpecific(String deviceSpecificParentID, DeviceSpecific ds)
802if (CurrentChoice != null && 0 == String.Compare(CurrentStyle.Name, deviceSpecificParentID, StringComparison.OrdinalIgnoreCase))
867foreach (String key in styles)
912_tmpCurrentStyle = (Style) _styleSheet[((String) _mergedUI.CbStyles.SelectedItem).ToLower(CultureInfo.InvariantCulture)];
913_deviceSpecificEditor.Refresh((String) _mergedUI.CbStyles.SelectedItem, _tmpCurrentStyle.DeviceSpecific);
1002foreach (String key in styles)
1031public String TemplateStyle
1046if (!String.IsNullOrEmpty(value) &&
1050foreach (String key in styles)
1072String marginTop = null, marginBottom = null, marginRight = null;
1101TypeDescriptor.CreateProperty(this.GetType(), _templatesStylePropName, typeof(String),
1128foreach (String key in styleKeys)
1243protected override String GetErrorMessage(out bool infoMode)
UI\MobileControls\Design\TemplatingOptionsDialog.cs (39)
51private String[] _schemasFriendly;
52private String[] _schemasUrl;
74_schemasFriendly = new String[] { SR.GetString(SR.TemplatingOptionsDialog_HTMLSchemaFriendly),
76_schemasUrl = new String[] { SR.GetString(SR.MarkupSchema_HTML32),
87String currentDeviceSpecificID = _dsd.CurrentDeviceSpecificID;
234String friendlySchema;
237_cmbSchemas.Text = String.Empty;
258foreach (String strSchema in _strCollSchemas)
280private String FriendlyToUrlSchema(String friendlySchema)
284if (0 == String.Compare(_schemasFriendly[i], friendlySchema, StringComparison.OrdinalIgnoreCase))
292private String UrlToFriendlySchema(String urlSchema)
296if (0 == String.Compare(_schemasUrl[i], urlSchema, StringComparison.Ordinal))
309String currentChoiceIdentifier = _cmbChoices.SelectedItem as String;
312DeviceSpecificChoice dsc = GetChoiceFromIdentifier((String) currentChoiceIdentifier, _ds);
334foreach (String key in styleKeys)
381private bool CaseSensitiveComboSearch(ComboBox cmb, String str)
385if (String.Compare(str, (String) obj, StringComparison.Ordinal) == 0)
398(!((String)_cmbChoices.SelectedItem).Equals(SR.GetString(SR.DeviceFilter_NoChoice)));
401private DeviceSpecificChoice GetChoiceFromIdentifier(String choiceIdentifier, DeviceSpecific ds)
428void IRefreshableDeviceSpecificEditor.Refresh(String deviceSpecificID, DeviceSpecific ds)
445String oldDeviceSpecificID, String newDeviceSpecificID) {}
447String deviceSpecificID) {}
456_designer.CurrentChoice = GetChoiceFromIdentifier((String) _cmbChoices.SelectedItem, _ds);
472_cmbSchemas.Text = String.Empty;
487DeviceSpecificChoice choice = GetChoiceFromIdentifier((String) _cmbChoices.SelectedItem, _ds);
488String urlSchema = FriendlyToUrlSchema(_cmbSchemas.Text);
489if (0 != String.Compare(choice.Xmlns, urlSchema, StringComparison.Ordinal))
491String previousUrlSchema = choice.Xmlns;
497if (0 == String.Compare(choiceTmp.Xmlns, previousUrlSchema, StringComparison.Ordinal))
508if (0 == String.Compare(_schemasUrl[i], previousUrlSchema, StringComparison.Ordinal))
521String friendlySchema = UrlToFriendlySchema(urlSchema);
552String IDeviceSpecificDesigner.CurrentDeviceSpecificID
584bool IDeviceSpecificDesigner.GetDeviceSpecific(String deviceSpecificParentID, out DeviceSpecific ds)
589void IDeviceSpecificDesigner.SetDeviceSpecific(String deviceSpecificParentID, DeviceSpecific ds)
UI\MobileControls\DeviceSpecificChoice.cs (42)
39private String _deviceFilter = String.Empty;
40private String _argument;
41private String _xmlns;
53public String Filter
65value = String.Empty;
72public String Argument
90public String Xmlns
154String propertyName = (String)enumerator.Key;
155String propertyValue = enumerator.Value as String;
159if (String.Equals(propertyName, "id", StringComparison.OrdinalIgnoreCase)) {
172String containingObjectName = propertyName.Substring(0, dash);
208private bool FindAndApplyProperty(Object parentObject, String name, String value)
227if (type.IsAssignableFrom(typeof(String)))
260private bool FindAndApplyEvent(Object parentObject, String name, String value)
266String eventName = name.Substring(2);
340typeof(String)
365protected String GetAttribute(String key)
368if (o != null & !(o is String))
373return (String)o;
378protected void SetAttribute(String key, String value)
395String IAttributeAccessor.GetAttribute(String name) {
399void IAttributeAccessor.SetAttribute(String name, String value) {
495String tagName,
496String id,
511public override void AppendLiteralString(String text)
517public override Type GetChildControlType(String tagName, IDictionary attributes)
597private String _templateName;
601internal String TemplateName
632String tagName,
633String id,
653public override void AppendLiteralString(String text)
720private String _name;
740public String Name
UI\MobileControls\MobilePage.cs (72)
47public static readonly String HiddenPostEventSourceId = postEventSourceID;
49public static readonly String HiddenPostEventArgumentId = postEventArgumentID;
51public static readonly String ViewStateID = "__VIEWSTATE";
53public static readonly String HiddenVariablePrefix = "__V_";
55public static readonly String PageClientViewStateKey = "__P";
57private const String DesignerAdapter = "System.Web.UI.MobileControls.Adapters.HtmlPageAdapter";
63private String _eventSource;
158public override String Theme {
174public new String Title {
176return String.Empty;
184public override String StyleSheetTheme {
334String _clientViewStateString;
342public String ClientViewState
394private void AddClientViewState(String id, Object viewState)
438private String _appPath;
441public String MakePathAbsolute(String virtualPath)
458String path = Request.CurrentExecutionFilePath;
477private String _relativeFilePath;
483public String RelativeFilePath
492return String.Empty;
497String s = Context.Request.CurrentExecutionFilePath;
498String filePath = Context.Request.FilePath;
517private String _absoluteFilePath;
523public String AbsoluteFilePath
538private String _uniqueFilePathSuffix;
544public new String UniqueFilePathSuffix
556_uniqueFilePathSuffix = String.Concat(
564private static String RemoveQueryStringElement(String queryStringText, String elementName)
584queryStringText = String.Empty;
608public String QueryStringText
621return String.Empty;
624String fullQueryString;
652private String _activeFormID;
723public Form GetForm(String id)
743public void RedirectToMobilePage(String url)
749public void RedirectToMobilePage(String url, bool endResponse)
757foreach(String name in dictionary.Keys)
761url = String.Concat(url, "&");
765url = String.Concat(url, "?");
768url = String.Concat(url, name + "=" + dictionary[name]);
830private const String UserAgentHeader = "User-Agent";
834String varyByHeader,
835String varyByCustom,
837String varyByParam)
843String varyByContentEncoding,
844String varyByHeader,
845String varyByCustom,
847String varyByParam)
857foreach (String header in headerList)
940String key = collection.GetKey(i);
947String eventSource = collection[postEventSourceID];
971private void RaisePagePostBackEvent(String eventSource, String eventArgument)
978protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
1077foreach (String s in arr)
1118private static readonly String _controlsRequiringPostBackKey = ".PBC";
1125String clientViewStateString = _requestValueCollection[ViewStateID];
1152_activeFormID = (String) pair.First;
1196MobileControl ctl = FindControl((String)entry.Key) as MobileControl;
1271if (String.Compare(Request.HttpMethod, "GET", StringComparison.OrdinalIgnoreCase) == 0)
1282String activeFormID = ActiveForm == Forms[0] ? null : ActiveForm.UniqueID;
1495private String CreateQueryStringTextFromCollection(
1498const String systemPostFieldPrefix = "__";
1503return String.Empty;
1508String name = collection.GetKey(i);
1527String controlId = name;
1551String sourceKey,
1554String [] values = sourceCollection.GetValues(sourceKey);
1555foreach (String value in values)
UI\MobileControls\PagerStyle.cs (27)
35NextPageTextKey = RegisterStyle("NextPageText", typeof(String), String.Empty, false),
36PreviousPageTextKey = RegisterStyle("PreviousPageText", typeof(String), String.Empty, false),
37PageLabelKey = RegisterStyle("PageLabel", typeof(String), String.Empty, false);
47public String NextPageText
51return (String)this[NextPageTextKey];
67public String PreviousPageText
71return (String)this[PreviousPageTextKey];
87public String PageLabel
91return (String)this[PageLabelKey];
100public String GetNextPageText(int currentPageIndex)
102String s = (String)this[NextPageTextKey, true];
103if (!String.IsNullOrEmpty(s))
105return String.Format(CultureInfo.CurrentCulture, s, currentPageIndex + 1);
114public String GetPreviousPageText(int currentPageIndex)
116String s = (String)this[PreviousPageTextKey, true];
117if (!String.IsNullOrEmpty(s))
119return String.Format(CultureInfo.CurrentCulture, s, currentPageIndex - 1);
128public String GetPageLabelText(int currentPageIndex, int pageCount)
130String s = (String)this[PageLabelKey, true];
133s = String.Empty;
137s = String.Format(CultureInfo.CurrentCulture, s, currentPageIndex, pageCount);
UI\MobileControls\Style.cs (22)
49FontNameKey = RegisterStyle("FontName" , typeof(String) , String.Empty , true),
71foreach(String key in State.Keys)
82control.Font.Name = (String)this[FontNameKey, true];
105style.Font.Name = (String)this[FontNameKey, true];
227public String Name
231String name = (String)State["Name"];
232return name != null ? name : String.Empty;
249public virtual String StyleReference
253return (String)State["StyleReference"];
276String reference = StyleReference;
278if (String.IsNullOrEmpty(reference))
285String.Equals(reference, _referredStyle.Name, StringComparison.OrdinalIgnoreCase),
336String exceptionResource;
514internal String FontName
518return (String)this[FontNameKey];
730public ITemplate GetTemplate(String templateName)
735internal ITemplate GetTemplateInternal(String templateName, Hashtable stylesEncountered)
795public static Object RegisterStyle(String name, Type type, Object defaultValue, bool inherit)
802public String Name;
807public Property(String name, Type type, Object defaultValue, bool inherit)
misc\DbgUtil.cs (6)
232string message = String.Empty;
259return String.Format( CultureInfo.CurrentCulture, "0x{0:x8} - {1}", err, message);
291string trace = String.Empty;
337string args = String.Empty;
357trace += String.Format(CultureInfo.CurrentCulture, "at {0} {1}.{2}({3})\r\n", fileName, mi.DeclaringType, mi.Name, args );
386return String.Format( CultureInfo.CurrentCulture, "{0}\r\nTop Stack Trace:\r\n{1}", message, DbgUtil.StackFramesToStr(frameCount));
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (10)
29internal const String CRYPT32 = "crypt32.dll";
30internal const String KERNEL32 = "kernel32.dll";
38internal const String MSCORWKS = "clr.dll";
368String.Compare(snIdValue, "StrongNameSignature", StringComparison.Ordinal) != 0) {
405else if (String.Compare(algorithm, SignedXml.XmlDsigExcC14NTransformUrl, StringComparison.Ordinal) != 0) {
412else if (String.Compare(algorithm, SignedXml.XmlDsigEnvelopedSignatureTransformUrl, StringComparison.Ordinal) != 0) {
422else if (String.Compare(uriValue, "#StrongNameKeyInfo", StringComparison.Ordinal) == 0) {
444else if (String.Compare(algorithm, SignedXml.XmlDsigExcC14NTransformUrl, StringComparison.Ordinal) != 0) {
621if (String.Compare(publisherName, signerCert.SubjectName.Name, StringComparison.Ordinal) != 0 ||
622String.Compare(publisherIssuerKeyHash, issuerKeyHash, StringComparison.Ordinal) != 0) {
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (10)
478if (subjectNode == null || String.Compare(signingCertificate.Subject, subjectNode.InnerText, StringComparison.Ordinal) != 0)
605String.Compare(snIdValue, signatureKind, StringComparison.Ordinal) != 0)
650else if (String.Compare(algorithm, SignedXml.XmlDsigExcC14NTransformUrl, StringComparison.Ordinal) != 0)
659else if (String.Compare(algorithm, SignedXml.XmlDsigEnvelopedSignatureTransformUrl, StringComparison.Ordinal) != 0)
671else if (String.Compare(uriValue, "#StrongNameKeyInfo", StringComparison.Ordinal) == 0)
698else if (String.Compare(algorithm, SignedXml.XmlDsigExcC14NTransformUrl, StringComparison.Ordinal) != 0)
1232if (String.Compare(publisherName, signerCert.SubjectName.Name, StringComparison.Ordinal) != 0 ||
1233String.Compare(publisherIssuerKeyHash, issuerKeyHash, StringComparison.Ordinal) != 0)
1768string timestamp = String.Empty;
1842string timestamp = String.Empty;
winforms\Managed\System\WinForms\AxHost.cs (30)
3652private String val;
3655public ClsidAttribute(String clsid) {
3660public String Value {
3741throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.AXNoSinkAdvise, eventInterface.Name), hr));
3996MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr,Binder binder, Type[] types,ParameterModifier[] modifiers) {
4000MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr) {
4008FieldInfo IReflect.GetField(String name, BindingFlags bindingAttr) {
4016PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) {
4020PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
4028MemberInfo[] IReflect.GetMember(String name, BindingFlags bindingAttr) {
4036Object IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder,
4037Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) {
5282MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr,Binder binder, Type[] types,ParameterModifier[] modifiers) {
5286MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr) {
5294FieldInfo IReflect.GetField(String name, BindingFlags bindingAttr) {
5302PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) {
5306PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
5314MemberInfo[] IReflect.GetMember(String name, BindingFlags bindingAttr) {
5322Object IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder,
5323Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) {
6361MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr,Binder binder, Type[] types,ParameterModifier[] modifiers) {
6365MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr) {
6373FieldInfo IReflect.GetField(String name, BindingFlags bindingAttr) {
6381PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) {
6389PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder,Type returnType, Type[] types, ParameterModifier[] modifiers) {
6423MemberInfo[] IReflect.GetMember(String name, BindingFlags bindingAttr) {
6451Object IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder,
6452Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) {
6637if (String.Compare(sie.Name, "Data", true, CultureInfo.InvariantCulture) == 0) {
6649else if (String.Compare(sie.Name, "PropertyBagBinary", true, CultureInfo.InvariantCulture) == 0) {
winforms\Managed\System\WinForms\Binding.cs (11)
54private string formatString = String.Empty;
72public Binding(string propertyName, Object dataSource, string dataMember) : this(propertyName, dataSource, dataMember, false, 0, null, String.Empty, null) {
76public Binding(string propertyName, Object dataSource, string dataMember, bool formattingEnabled) : this(propertyName, dataSource, dataMember, formattingEnabled, 0, null, String.Empty, null) {
80public Binding(string propertyName, Object dataSource, string dataMember, bool formattingEnabled, DataSourceUpdateMode dataSourceUpdateMode) : this(propertyName, dataSource, dataMember, formattingEnabled, dataSourceUpdateMode, null, String.Empty, null) {
84public Binding(string propertyName, Object dataSource, string dataMember, bool formattingEnabled, DataSourceUpdateMode dataSourceUpdateMode, object nullValue) : this(propertyName, dataSource, dataMember, formattingEnabled, dataSourceUpdateMode, nullValue, String.Empty, null) {
374value = String.Empty;
536if(tempPropInfo==null && String.Equals (propInfos[i].Name, propertyName, StringComparison.OrdinalIgnoreCase)) {
541if(tempPropIsNullInfo == null && String.Equals (propInfos[i].Name, propertyNameIsNull, StringComparison.OrdinalIgnoreCase)) {
567if(tempValidateInfo==null && String.Equals (eventInfos[i].Name, validateName, StringComparison.OrdinalIgnoreCase)) {
623string errorText = String.Empty;
637if (!String.IsNullOrEmpty(errorText)) {
winforms\Managed\System\WinForms\BindingSource.cs (17)
62private string dataMember = String.Empty;
109public BindingSource() : this(null, String.Empty) {
188if (String.IsNullOrEmpty(dataMember)) {
214if (String.Equals(key, dataMember, StringComparison.OrdinalIgnoreCase)) {
248value = String.Empty;
311return String.Empty;
320if (String.Equals(value, this.InnerListFilter, StringComparison.Ordinal)) {
356if (String.Compare(value, this.InnerListSort, false, CultureInfo.InvariantCulture) == 0) {
645return String.Empty;
653((i < sortsColln.Count - 1) ? "," : String.Empty));
797public int Find(String propertyName, object key) {
868if (String.IsNullOrEmpty(this.dataMember)) {
1052if (!String.IsNullOrEmpty(this.dataMember)) {
1118if (String.IsNullOrEmpty(sortString)) {
1132if (length >= 5 && String.Compare(current, length - 4, " ASC", 0, 4, true, CultureInfo.InvariantCulture) == 0) {
1135else if (length >= 6 && String.Compare(current, length - 5, " DESC", 0, 5, true, CultureInfo.InvariantCulture) == 0) {
1748if (ds is ITypedList && !String.IsNullOrEmpty(this.dataMember)) {
winforms\Managed\System\WinForms\ComboBox.cs (10)
1276if (!String.IsNullOrEmpty(candidate)) {
1277if (String.Compare(candidate, base.Text, true, CultureInfo.CurrentCulture) == 0) {
1289if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !String.IsNullOrEmpty(value) && FindStringExact(value) == -1)
1304(selectedItem == null || (String.Compare(value, GetItemText(selectedItem), false, CultureInfo.CurrentCulture) != 0))) {
2399if (!String.IsNullOrEmpty(oldText) && String.IsNullOrEmpty(WindowText)) {
2927Debug.Assert(DisplayMember.Equals(String.Empty), "if this list is sorted it means that dataSource was null when Sorted first became true. at that point DisplayMember had to be String.Empty");
4017String itemName1 = comboBox.GetItemText(item1);
4018String itemName2 = comboBox.GetItemText(item2);
4407if (String.Compare(this.owner.GetItemText(value), this.owner.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Enum.cs (4)
114if (String.Compare(names[i], s, true, CultureInfo.InvariantCulture) == 0 ||
115String.Compare(stringValues[i], s, true, CultureInfo.InvariantCulture) == 0) {
119if (bestMatch == -1 && 0 == String.Compare(names[i], s, true, CultureInfo.InvariantCulture)) {
169if (String.Compare(stringValues[i], strVal, true, CultureInfo.InvariantCulture) == 0) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
500Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "Adding Browsable(false) to property '" + pi.Name + "' because Invoke(dispid=0x{0:X} ,DISPATCH_PROPERTYGET) returned hr=0x{1:X}. Properties that do not return S_OK are hidden by default.", pi.DispId, hr));
541Debug.Fail(String.Format(CultureInfo.CurrentCulture, "ITypeInfo::GetDocumentation didn't return a name for DISPID 0x{0:X} but returned SUCEEDED(hr), Component=" + cnd.GetClassName(typeInfo), dispid));
648Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "ProcessTypeInfoEnum: ignoring function item 0x{0:X} because ITypeInfo::GetFuncDesc returned hr=0x{1:X} or NULL", i, hr));
766Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "ProcessTypeInfoEnum: ignoring item 0x{0:X} because ITypeInfo::GetVarDesc returned hr=0x{1:X} or NULL", hr));
789Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "ProcessTypeInfoEnum: ignoring item 0x{0:X} because ITypeInfo::GetDocumentation returned hr=0x{1:X} or NULL", hr));
905Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "ProcessTypeInfoEnum: ignoring variable item 0x{0:X} because ITypeInfo::GetFuncDesc returned hr=0x{1:X} or NULL", hr));
winforms\Managed\System\WinForms\ControlBindingsCollection.cs (6)
64if (String.Equals(binding.PropertyName, propertyName, StringComparison.OrdinalIgnoreCase))
92return Add(propertyName, dataSource, dataMember, false, this.DefaultDataSourceUpdateMode, null, String.Empty, null);
97return Add(propertyName, dataSource, dataMember, formattingEnabled, this.DefaultDataSourceUpdateMode, null, String.Empty, null);
102return Add(propertyName, dataSource, dataMember, formattingEnabled, updateMode, null, String.Empty, null);
107return Add(propertyName, dataSource, dataMember, formattingEnabled, updateMode, nullValue, String.Empty, null);
152(String.Compare(binding.PropertyName, this[i].PropertyName, false, CultureInfo.InvariantCulture) == 0)) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (12)
887if (!String.IsNullOrEmpty(value) || this.Properties.ContainsObject(PropCellToolTipText))
1582if (String.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase))
1614bool csv = String.Equals(format, DataFormats.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase);
1616String.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) ||
1617String.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
3115if (String.IsNullOrEmpty(toolTipText))
3181if (!String.IsNullOrEmpty(toolTipText))
3205Debug.Assert(!String.IsNullOrEmpty(errorText), "if we entered the cell error area then an error was painted, so we should have an error");
4781return String.Empty;
4835return String.Empty;
4961if (formattedValue == null || (formattedValueAsString != null && String.IsNullOrEmpty(formattedValueAsString)))
4983return String.Empty;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (9)
25string dataMember = String.Empty;
348if (String.Equals(column.DataPropertyName, sortField.Name, StringComparison.OrdinalIgnoreCase))
388if (String.Compare(this.props[i].Name, dataPropertyName, true /*ignoreCase*/, CultureInfo.InvariantCulture) == 0)
419if (String.Compare(this.props[boundColumnIndex].Name, sortProperty.Name, true /*ignoreCase*/, CultureInfo.InvariantCulture) == 0)
724if (String.Compare(dataGridViewColumn.DataPropertyName, dataPropertyName, true /*ignoreCase*/, CultureInfo.InvariantCulture) == 0)
1044dataGridViewColumn.HeaderText = !String.IsNullOrEmpty(this.props[i].DisplayName) ? this.props[i].DisplayName : this.props[i].Name;
1133dataMember = String.Empty;
1238return String.Empty;
1272return String.Empty;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (12)
1523!String.IsNullOrEmpty(dataGridViewCols[i].DataPropertyName) &&
1586String.Compare(finalClonedColumns[clonedColIndex].DataPropertyName,
2716if (String.IsNullOrEmpty(this.editingControl.AccessibleName))
3328return String.IsNullOrEmpty(this.toolTipCaption) && this.ShowCellToolTips;
7483if (String.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase))
7755if (String.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase))
8198if (String.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase))
11672this.DataMember = String.Empty;
14541String.Compare((string)dataGridViewColumn.HeaderCell.Value, dataGridViewColumn.Name, false, CultureInfo.InvariantCulture) == 0)
17594String.Compare(dataGridViewColumn.DataPropertyName,
19510String.Compare(dataGridViewColumn.DataPropertyName,
29935if (!String.IsNullOrEmpty(toolTip))
winforms\Managed\System\WinForms\ListControl.cs (10)
54private string formatString = String.Empty;
246value = String.Empty;
318if (String.Compare(props[i].Name, bindingMemberInfo.BindingField, true, CultureInfo.CurrentCulture) == 0) {
539found = String.Compare(str, GetItemText(items[index]), ignorecase, CultureInfo.CurrentCulture) == 0;
542found = String.Compare(str, 0, GetItemText(items[index]), 0, length, ignorecase, CultureInfo.CurrentCulture) == 0;
563return String.Empty;
577ListControlConvertEventArgs e = new ListControlConvertEventArgs(filteredItem, typeof(String), item);
581if (e.Value != item && e.Value is String) {
588stringTypeConverter = TypeDescriptor.GetConverter(typeof(String));
592return (string) Formatter.FormatObject(filteredItem, typeof(String), this.DisplayMemberConverter, stringTypeConverter, formatString, formatInfo, null, System.DBNull.Value);
winforms\Managed\System\WinForms\ListView.cs (17)
73private string toolTipCaption = String.Empty;
2878if (!String.IsNullOrEmpty(fileName)) {
2980if (!String.IsNullOrEmpty(this.backgroundImageFileName) || this.bkImgFileNames != null) {
2991if (!String.IsNullOrEmpty(this.backgroundImageFileName)) {
3002this.backgroundImageFileName = String.Empty;
3150return FindItem(false, String.Empty, false, new Point(x, y), searchDirection, -1, false);
3202if (String.Equals(text,lvsi.Text, StringComparison.OrdinalIgnoreCase)) {
3463String header = group.Header;
4823this.backgroundImageFileName = String.Empty;
4828if (String.IsNullOrEmpty(fileNameToDelete)) {
6181string text = String.Empty;
6400return (String.Compare(currentItem.Text,nextItem.Text, false, CultureInfo.CurrentCulture));
6403return (String.Compare(nextItem.Text,currentItem.Text, false, CultureInfo.CurrentCulture));
6848public virtual int IndexOfKey(String key) {
7640public virtual int IndexOfKey(String key) {
7807public virtual int IndexOfKey(String key) {
8671public virtual int IndexOfKey(String key) {
winforms\Managed\System\WinForms\MessageBox.cs (2)
335return ShowCore(null, text, String.Empty, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, 0, false);
397return ShowCore(owner, text, String.Empty, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, 0, false);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
1577if (0 == String.Compare(propName, allGridEntries.GetEntry(i).PropertyLabel, true, CultureInfo.InvariantCulture)) {
1810if (text != null && text.Length > 0 && String.Compare(text.Substring(0,1), letter, true, CultureInfo.InvariantCulture) == 0) {
1988if (value == curValue || 0 == String.Compare(textValue, itemTextValue, true, CultureInfo.InvariantCulture)) {
2693equal = 0 == String.Compare((string)value, rgvalue.ToString(), true, CultureInfo.CurrentCulture);
4786if (!String.Equals(text, Edit.Text)) {
winforms\Managed\System\WinForms\ToolStrip.cs (6)
2757if (!String.IsNullOrEmpty(text)) {
3531Debug.WriteLineIf(ToolStripItem.MouseDebugging.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "Item to get mouse move: {0}", (item == null) ? "null" : item.ToString()));
3533Debug.WriteLineIf(ToolStripItem.MouseDebugging.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "This is a new item - last item to get was {0}", (lastMouseActiveItem == null) ? "null" : lastMouseActiveItem.ToString()));
3542Debug.WriteLineIf(ToolStripItem.MouseDebugging.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "Firing MouseEnter on: {0}", (lastMouseActiveItem == null) ? "null" : lastMouseActiveItem.ToString()));
3559Debug.WriteLineIf(ToolStripItem.MouseDebugging.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "Firing MouseMove on: {0}", (item == null) ? "null" : item.ToString()));
3568Debug.WriteLineIf(ToolStripItem.MouseDebugging.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "Firing MouseMove on: {0}", (this == null) ? "null" : this.ToString()));
winforms\Managed\System\WinForms\ToolStripPanel.cs (10)
976Debug.WriteLineIf(ToolStripPanelDebug.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "RC.MoveControl - Point {0} is not in current rafting container drag bounds {1}, calling MoveOutsideContainer", clientLocation, DragBounds));
1049Debug.WriteLineIf(ToolStripPanelDebug.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "\tThere is no row corresponding to this point, creating a new one."));
1097Debug.WriteLineIf(ToolStripPanelRow.ToolStripPanelRowCreationDebug.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "\tThere was a row, but we cant add the control to it, creating/inserting new row."));
1105Debug.WriteLineIf(ToolStripPanelRow.ToolStripPanelRowCreationDebug.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "\tAttempts to leave the current row failed as there's no space in the next row. Since there's only one control, just keep the row."));
1124Debug.WriteLineIf(ToolStripPanelDebug.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "\tCalling JoinRow."));
1239Debug.Fail(String.Format(CultureInfo.CurrentCulture, "ToolStripPanelRow has not been assigned! Should be set to {0}.", i));
1242Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Detected orphan cell! {0} is in row {1}. It shouldnt have a cell in {2}! \r\n\r\nTurn on DEBUG_PAINT in ToolStripPanel and ToolStripPanelRow to investigate.", cell.Control.Name, goodRowIndex, i));
1258Debug.Write(String.Format(CultureInfo.CurrentCulture, "[{0} {1}] ", RowsInternal[i].ControlsInternal[j].Name, ((ToolStripPanelCell)RowsInternal[i].Cells[j]).Margin));
1283string fail = String.Format(CultureInfo.CurrentCulture,
1290fail += String.Format(CultureInfo.CurrentCulture,
AuthoringOM\Compiler\CompileXomlTask.cs (11)
156if (String.Compare(this.projectExt, ".csproj", StringComparison.OrdinalIgnoreCase) == 0)
160else if (String.Compare(this.projectExt, ".vbproj", StringComparison.OrdinalIgnoreCase) == 0)
689if (String.Compare(ProjectExtension, ".csproj", StringComparison.OrdinalIgnoreCase) != 0 && String.Compare(ProjectExtension, ".vbproj", StringComparison.OrdinalIgnoreCase) != 0)
1069if (String.Compare(extension, ".rules", StringComparison.OrdinalIgnoreCase) == 0 ||
1070String.Compare(extension, WorkflowDesignerLoader.DesignerLayoutFileExtension, StringComparison.OrdinalIgnoreCase) == 0)
1080if (String.Compare(extension, ".xoml", StringComparison.OrdinalIgnoreCase) == 0)
1106if (String.Compare(extension, ".rules", StringComparison.OrdinalIgnoreCase) == 0 ||
1107String.Compare(extension, WorkflowDesignerLoader.DesignerLayoutFileExtension, StringComparison.OrdinalIgnoreCase) == 0)
1117if (String.Compare(extension, ".xoml", StringComparison.OrdinalIgnoreCase) == 0)
1184if (0 == String.Compare(Path.GetExtension(info.cultureNeutralFilename), ".resx", StringComparison.OrdinalIgnoreCase))
AuthoringOM\Compiler\XomlCompilerHelpers.cs (14)
108if (String.IsNullOrEmpty(fileName))
118if (!String.IsNullOrEmpty(fileName))
255authorized = (String.Compare(bool.TrueString, authorizedType.Authorized, StringComparison.OrdinalIgnoreCase) == 0);
456string[] stringArray = new String[userLibraryPaths.Count];
823throw new InvalidOperationException(String.Format(SR.GetString(SR.Error_MetaDataInterfaceMissing), assemblyLocation, "IMetaDataDispenser"));
833throw new InvalidOperationException(String.Format(SR.GetString(SR.Error_MetaDataInterfaceMissing), assemblyLocation, "IMetaDataImport"));
854string typeRefName = String.Empty;
869throw new InvalidOperationException(String.Format(SR.GetString(SR.Error_MetaDataInterfaceMissing), assemblyLocation, "IMetaDataAssemblyImport"));
898String publicKeyString = String.Empty;
901publicKeyString += String.Format("{0}", Marshal.ReadByte(publicKeyOrToken, pos).ToString("x2"));
904yield return String.Format("{0}, {1}, Version={2}.{3}.{4}.{5}, Culture={6}, PublicKeyToken={7}", typeRefName, Marshal.PtrToStringUni(assemblyName), assemblyMetadata.majorVersion, assemblyMetadata.minorVersion, assemblyMetadata.buildNumber, assemblyMetadata.revisionNumber, String.IsNullOrEmpty(Marshal.PtrToStringUni(assemblyMetadata.locale)) ? "neutral" : Marshal.PtrToStringUni(assemblyMetadata.locale), String.IsNullOrEmpty(publicKeyString) ? "null" : publicKeyString);
Base\MS\Internal\ContentType.cs (18)
90if (String.CompareOrdinal(contentType, String.Empty) == 0)
92_contentType = String.Empty;
263result = (String.Compare(_type, contentType.TypeComponent, StringComparison.OrdinalIgnoreCase) == 0 &&
264String.Compare(_subType, contentType.SubTypeComponent, StringComparison.OrdinalIgnoreCase) == 0);
280return String.Empty;
282Debug.Assert(String.CompareOrdinal(_type, String.Empty) != 0
283|| String.CompareOrdinal(_subType, String.Empty) != 0);
446while (String.CompareOrdinal(parameterAndValue, String.Empty) != 0)
556if (String.CompareOrdinal(token, String.Empty)==0)
582if (String.CompareOrdinal(parameterValue, String.Empty) == 0)
717private string _type = String.Empty;
718private string _subType = String.Empty;
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (14)
128internal void Delete(String id)
202if (relationshipType.Trim() == String.Empty)
314&& (String.CompareOrdinal(RelationshipsTagName, reader.LocalName) == 0)
315&& (String.CompareOrdinal(PackagingUtilities.RelationshipNamespaceUri, reader.NamespaceURI) == 0))
338&& (String.CompareOrdinal(RelationshipTagName, reader.LocalName) == 0)
339&& (String.CompareOrdinal(PackagingUtilities.RelationshipNamespaceUri, reader.NamespaceURI) == 0))
362if (!(String.CompareOrdinal(RelationshipsTagName,reader.LocalName) == 0 && (reader.NodeType == XmlNodeType.EndElement)))
403if (targetAttributeValue == null || targetAttributeValue == String.Empty)
410if (typeAttributeValue == null || typeAttributeValue == String.Empty)
416if (idAttributeValue == null || idAttributeValue == String.Empty)
434if (reader.NodeType == XmlNodeType.EndElement && String.CompareOrdinal(RelationshipTagName, reader.LocalName) == 0)
640if (String.CompareOrdinal(target.Scheme, PackUriHelper.UriSchemePack) == 0)
667private void ThrowForInvalidAttributeValue(XmlCompatibilityReader reader, String attributeName, Exception ex)
690return String.Concat("R", Guid.NewGuid().ToString("N").Substring(0, _timestampLength));
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (42)
79String signatureId,
146String currentHashAlgorithmName = String.Empty; // guaranteed not to match
182if (String.CompareOrdinal(
196String.CompareOrdinal(partEntry.HashAlgorithm, currentHashAlgorithmName) != 0)
214String base64EncodedHashValue = GenerateDigestValue(s, partEntry.Transforms, hashAlgorithm);
217if (String.CompareOrdinal(base64EncodedHashValue, partEntry.HashValue) != 0)
242internal List<String> GetPartTransformList(Uri partName)
247List<String> transformList = null;
261transformList = new List<String>();
426internal String TimeFormat
453internal static String GenerateDigestValue(
455String transformName,
458List<String> transforms = null;
461transforms = new List<String>(1);
478internal static String GenerateDigestValue(
480List<String> transforms,
497foreach (String transformName in transforms)
501|| (String.CompareOrdinal(transformName, XTable.Get(XTable.ID.RelationshipsTransformName)) == 0))
521String hashValueString = System.Convert.ToBase64String(HashStream(hashAlgorithm, transformStream));
571internal static HashAlgorithm GetHashAlgorithm(String hashAlgorithmName)
602private static Transform StringToTransform(String transformName)
606if (String.CompareOrdinal(transformName, SignedXml.XmlDsigC14NTransformUrl) == 0)
610else if (String.CompareOrdinal(transformName, SignedXml.XmlDsigC14NWithCommentsTransformUrl) == 0)
629internal static bool IsValidXmlCanonicalizationTransform(String transformName)
633if (String.CompareOrdinal(transformName, SignedXml.XmlDsigC14NTransformUrl) == 0 ||
634String.CompareOrdinal(transformName, SignedXml.XmlDsigC14NWithCommentsTransformUrl) == 0)
701(String.CompareOrdinal(node.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) != 0) ||
702(String.CompareOrdinal(node.LocalName, XTable.Get(XTable.ID.SignatureTagName)) != 0))
778String signatureId,
950SortedDictionary<String, PackageRelationship> partRelationships =
951new SortedDictionary<String, PackageRelationship>(StringComparer.Ordinal);
1071if (String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) != 0)
1081&& (String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) == 0)
1084if (!signaturePropertiesTagFound && String.CompareOrdinal(reader.LocalName, signaturePropertiesTagName) == 0)
1094else if (!manifestTagFound && String.CompareOrdinal(reader.LocalName, manifestTagName) == 0)
1126String opcId = XTable.Get(XTable.ID.OpcAttrValue);
1130if (String.CompareOrdinal(dataObject.Id, opcId) == 0)
1175String signatureId)
1257if (String.CompareOrdinal(currentReference.Uri, XTable.Get(XTable.ID.OpcLinkAttrValue)) == 0)
1299private String _hashAlgorithmName; // first hash algorithm obtained - considered to be the setting for the entire signature
1304private String _signingTimeFormat; // format string
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (31)
133if (String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) == 0
134&& (String.CompareOrdinal(reader.LocalName, referenceTagName) == 0)
170|| String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) != 0
197|| String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) != 0
257List<String> transforms = null; // optional transform algorithm names
263if (String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) != 0
271String.CompareOrdinal(reader.LocalName, XTable.Get(XTable.ID.DigestMethodTagName)) == 0)
279String.CompareOrdinal(reader.LocalName, XTable.Get(XTable.ID.DigestValueTagName)) == 0)
287String.CompareOrdinal(reader.LocalName, XTable.Get(XTable.ID.TransformsTagName)) == 0)
310private static List<String> ParseTransformsTag(XmlReader reader, Uri partUri, ref List<PackageRelationshipSelector> relationshipSelectors)
330List<String> transforms = null;
339String transformName = null;
343|| String.CompareOrdinal(reader.NamespaceURI, SignedXml.XmlDsigNamespaceUrl) != 0
344|| String.CompareOrdinal(reader.LocalName, XTable.Get(XTable.ID.TransformTagName)) != 0)
359if (String.CompareOrdinal(transformName, XTable.Get(XTable.ID.RelationshipsTransformName)) == 0)
367transforms = new List<String>();
384transforms = new List<String>();
432&& (String.CompareOrdinal(reader.NamespaceURI, XTable.Get(XTable.ID.OpcSignatureNamespace)) == 0))
435if (String.CompareOrdinal(reader.LocalName, XTable.Get(XTable.ID.RelationshipReferenceTagName)) == 0)
450else if ((String.CompareOrdinal(reader.LocalName, XTable.Get(XTable.ID.RelationshipsGroupReferenceTagName)) == 0))
595private static Uri ParsePartUriAttribute(String attrValue, out ContentType contentType)
607String query = attrValue.Substring(index);
656String relationshipPartString;
672String opcNamespace = XTable.Get(XTable.ID.OpcSignatureNamespace);
673String opcNamespacePrefix = XTable.Get(XTable.ID.OpcSignatureNamespacePrefix);
713String transformName = null;
764String transformName = String.Empty;
806private static XmlNode GenerateDigestValueNode(XmlDocument xDoc, HashAlgorithm hashAlgorithm, Stream s, String transformName)
823SortedDictionary<String, PackageRelationship>
824relationshipsDictionarySortedById = new SortedDictionary<String, PackageRelationship>(StringComparer.Ordinal);
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (27)
50internal static String DefaultDateTimeFormat
68internal static bool LegalFormat(String candidateFormat)
100String xmlDateTimeFormat,
101String signatureId)
156internal static DateTime ParseSigningTime(XmlReader reader, string signatureId, out String timeFormat)
177&& (String.CompareOrdinal(reader.NamespaceURI, w3cSignatureNameSpace) == 0)
178&& (String.CompareOrdinal(reader.LocalName, signaturePropertyTag) == 0)
206if (((String.CompareOrdinal(signaturePropertyTag, reader.LocalName) == 0
212if ((String.CompareOrdinal(signaturePropertiesTag, reader.LocalName) == 0
241private static DateTime ParseSignatureTimeTag(XmlReader reader, out String timeFormat)
260&& (String.CompareOrdinal(reader.NamespaceURI, opcSignatureNameSpace) == 0)
261&& (String.CompareOrdinal(reader.LocalName, signatureTimeTag) == 0)
267if (String.CompareOrdinal(reader.NamespaceURI, opcSignatureNameSpace) == 0
272if ((String.CompareOrdinal(reader.LocalName, timeValueTagName) == 0)
293else if ((String.CompareOrdinal(reader.LocalName, timeFormatTagName) == 0)
320if (String.CompareOrdinal(signatureTimeTag, reader.LocalName) == 0
328&& String.CompareOrdinal(signaturePropertyTag, reader.LocalName) == 0)
355private static String DateTimeToXmlFormattedTime(DateTime dt, string format)
369private static DateTime XmlFormattedTimeToDateTime(String s, String format)
388private static int GetIndex(String format)
392if (String.CompareOrdinal(_dateTimePatternMap[i].Format, format) == 0)
405private static string[] ConvertXmlFormatStringToDateTimeFormatString(String format)
420&& (String.CompareOrdinal(idAttrValue,XTable.Get(XTable.ID.SignaturePropertyIdAttrValue)) == 0))
441if (String.CompareOrdinal(idTargetValue, String.Empty) == 0)
447if (signatureId != null && String.CompareOrdinal(idTargetValue, "#" + signatureId) == 0)
Base\System\IO\Packaging\PackUriHelper.cs (19)
113if (fragment == String.Empty || fragment[0] != '#')
139absolutePackageUri = String.Concat(PackUriHelper.UriSchemePack, Uri.SchemeDelimiter, absolutePackageUri);
149packUri = new Uri(String.Concat(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), fragment));
240if (partName == String.Empty)
467partName = String.Concat(partName, _relationshipPartExtensionName); // Adding the ".rels" extension
772partUriString = String.Empty;
787if (partName == String.Empty)
822if (String.CompareOrdinal(partUri.OriginalString.ToUpperInvariant(), wellFormedPartName.ToUpperInvariant()) != 0)
938String partName = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
942return String.Empty;
970String hostAndPort = packUri.GetComponents(UriComponents.HostAndPort, UriFormat.UriEscaped);
978if (packageUri.Fragment != String.Empty)
991if (partName == String.Empty)
1239Debug.Assert(segments.Length > 0 && segments[0] == String.Empty);
1242Debug.Assert(String.CompareOrdinal((Path.GetExtension(segments[segments.Length - 1])), _relationshipPartUpperCaseExtension) == 0);
1250result = (String.CompareOrdinal(segments[segments.Length - 2], _relationshipPartUpperCaseSegmentName) == 0);
1260if(String.CompareOrdinal(segments[segments.Length - 3], _relationshipPartUpperCaseSegmentName) == 0)
1300return String.CompareOrdinal(this.NormalizedPartUriString, otherPartUri.NormalizedPartUriString);
1320private static readonly string _relsrelsUpperCaseExtension = String.Concat(_relationshipPartUpperCaseExtension, _relationshipPartUpperCaseExtension);
Base\System\IO\Packaging\ZipPackage.cs (12)
486return String.Concat(_forwardSlash, zipItemName);
696if (String.CompareOrdinal(pieces[i].NormalizedPrefixName, normalizedPrefixNameForCurrentSequence) != 0)
845return (String.CompareOrdinal(extensionA.ToUpperInvariant(), extensionB.ToUpperInvariant()) == 0);
1141&& (String.CompareOrdinal(reader.NamespaceURI, TypesNamespaceUri) == 0)
1142&& (String.CompareOrdinal(reader.Name, TypesTagName) == 0))
1165&& (String.CompareOrdinal(reader.NamespaceURI, TypesNamespaceUri) == 0)
1166&& (String.CompareOrdinal(reader.Name, DefaultTagName) == 0))
1173&& (String.CompareOrdinal(reader.NamespaceURI, TypesNamespaceUri) == 0)
1174&& (String.CompareOrdinal(reader.Name, OverrideTagName) == 0))
1179if (reader.NodeType == XmlNodeType.EndElement && reader.Depth == 0 && String.CompareOrdinal(reader.Name, TypesTagName) == 0)
1397if (reader.NodeType == XmlNodeType.EndElement && String.CompareOrdinal(elementName, reader.LocalName) == 0)
1469if (attributeValue == String.Empty)
Base\System\Windows\Threading\Dispatcher.cs (13)
1865Tuple<Object, List<String>> tuple = _reservedPtsCache as Tuple<Object, List<String>>;
1879Tuple<Object, List<String>> tuple = _reservedPtsCache as Tuple<Object, List<String>>;
1880List<String> list = (tuple != null) ? tuple.Item2 : new List<String>();
1881_reservedPtsCache = new Tuple<Object, List<String>>(value, list);
2770_reservedPtsCache = new Tuple<Object, List<String>>(_reservedPtsCache, new List<String>());
2775Tuple<Object, List<String>> tuple = _reservedPtsCache as Tuple<Object, List<String>>;
2778List<String> list = tuple.Item2;
2779list.Add(String.Format(System.Globalization.CultureInfo.InvariantCulture,
Shared\MS\Win32\NativeMethodsCLR.cs (2)
75return String.Format(System.Globalization.CultureInfo.CurrentCulture,"[{0}, {1}, {2}, {3}, {4}, {5}]", this.eM11, this.eM12, this.eM21, this.eM22, this.eDx, this.eDy );
6253internal override String GetString()