Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceCategoryAttribute.cs / 1 / ResourceCategoryAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; using System.Web.Util; [AttributeUsage(AttributeTargets.All)] internal sealed class ResourceCategoryAttribute : CategoryAttribute { internal ResourceCategoryAttribute(string category) : base(category) { } public override object TypeId { get { return typeof(CategoryAttribute); } } protected override string GetLocalizedString(string value) { string localizedValue = base.GetLocalizedString(value); if (localizedValue == null) { localizedValue = AtlasWeb.ResourceManager.GetString("Category_" + value, AtlasWeb.Culture); } // This attribute is internal, and we should never have a missing resource string. // System.Diagnostics.Debug.Assert(localizedValue != null, "All WebForms category attributes should have localized strings. Category '" + value + "' not found."); return localizedValue; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Exceptions.cs
- BamlCollectionHolder.cs
- JapaneseLunisolarCalendar.cs
- Enum.cs
- IdleTimeoutMonitor.cs
- BamlRecords.cs
- TreeSet.cs
- DataServiceHostWrapper.cs
- CapiNative.cs
- Semaphore.cs
- DataConnectionHelper.cs
- DataGridAutomationPeer.cs
- AsyncCompletedEventArgs.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- EdmFunctionAttribute.cs
- UriSection.cs
- FontUnit.cs
- NumberFunctions.cs
- StringBlob.cs
- InstanceOwnerQueryResult.cs
- WebPartZoneBase.cs
- DesignerSerializerAttribute.cs
- ListSourceHelper.cs
- TableLayoutStyleCollection.cs
- PersonalizableTypeEntry.cs
- _KerberosClient.cs
- COM2ComponentEditor.cs
- SecureEnvironment.cs
- ActiveXHost.cs
- AttributedMetaModel.cs
- ReadOnlyDictionary.cs
- StringSource.cs
- DataGrid.cs
- XmlAttributeCache.cs
- ToolStripSeparatorRenderEventArgs.cs
- SrgsSemanticInterpretationTag.cs
- FillErrorEventArgs.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- TreeNodeBinding.cs
- AdministrationHelpers.cs
- RSAPKCS1SignatureDeformatter.cs
- PreProcessInputEventArgs.cs
- OdbcErrorCollection.cs
- MetadataCacheItem.cs
- EdmRelationshipRoleAttribute.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataFieldCollectionEditor.cs
- QueryStatement.cs
- Visitor.cs
- XmlCharacterData.cs
- GeneralTransform3D.cs
- SerialPinChanges.cs
- ViewgenContext.cs
- WebHeaderCollection.cs
- FontDialog.cs
- XmlSchemaAttributeGroupRef.cs
- CustomErrorsSectionWrapper.cs
- MaskedTextBoxDesigner.cs
- TypeUtils.cs
- TiffBitmapEncoder.cs
- CodeParameterDeclarationExpression.cs
- Point4DValueSerializer.cs
- BitmapImage.cs
- XmlSchemaElement.cs
- BooleanStorage.cs
- ConfigXmlDocument.cs
- CriticalExceptions.cs
- Stopwatch.cs
- CompiledIdentityConstraint.cs
- RadioButtonBaseAdapter.cs
- XMLUtil.cs
- ConfigXmlComment.cs
- ProxyElement.cs
- PriorityBindingExpression.cs
- Substitution.cs
- WindowCollection.cs
- ClientEventManager.cs
- CompositeScriptReference.cs
- EntityCommandExecutionException.cs
- TreeViewDataItemAutomationPeer.cs
- Sql8ConformanceChecker.cs
- SharedPersonalizationStateInfo.cs
- DisplayInformation.cs
- CodeMemberField.cs
- XmlAnyElementAttribute.cs
- SubtreeProcessor.cs
- HttpEncoderUtility.cs
- Restrictions.cs
- EmptyEnumerator.cs
- Viewport3DAutomationPeer.cs
- Process.cs
- TextBreakpoint.cs
- PauseStoryboard.cs
- SchemaMapping.cs
- NTAccount.cs
- GlobalizationAssembly.cs
- Animatable.cs
- AdRotatorDesigner.cs
- mactripleDES.cs
- SingleQueryOperator.cs