Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Compilation / ExpressionEditorAttribute.cs / 1305376 / ExpressionEditorAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System.Security.Permissions; [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class ExpressionEditorAttribute : Attribute { private string _editorTypeName; public ExpressionEditorAttribute(Type type) : this((type != null) ? type.AssemblyQualifiedName : null) { } public ExpressionEditorAttribute(string typeName) { if (String.IsNullOrEmpty(typeName)) { throw new ArgumentNullException("typeName"); } _editorTypeName = typeName; } public string EditorTypeName { get { return _editorTypeName; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExpressionEditorAttribute other = obj as ExpressionEditorAttribute; return ((other != null) && (other.EditorTypeName == EditorTypeName)); } public override int GetHashCode() { return EditorTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System.Security.Permissions; [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class ExpressionEditorAttribute : Attribute { private string _editorTypeName; public ExpressionEditorAttribute(Type type) : this((type != null) ? type.AssemblyQualifiedName : null) { } public ExpressionEditorAttribute(string typeName) { if (String.IsNullOrEmpty(typeName)) { throw new ArgumentNullException("typeName"); } _editorTypeName = typeName; } public string EditorTypeName { get { return _editorTypeName; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExpressionEditorAttribute other = obj as ExpressionEditorAttribute; return ((other != null) && (other.EditorTypeName == EditorTypeName)); } public override int GetHashCode() { return EditorTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentCollection.cs
- ErrorProvider.cs
- TemplateBindingExtension.cs
- StylusShape.cs
- FontStretchConverter.cs
- DataGridViewRowCollection.cs
- MultiSelectRootGridEntry.cs
- XmlSerializationGeneratedCode.cs
- GuidelineSet.cs
- Int64Converter.cs
- ToolBarButtonDesigner.cs
- WSHttpBindingElement.cs
- AddingNewEventArgs.cs
- SortableBindingList.cs
- InvalidDataContractException.cs
- TextDecoration.cs
- SelectedGridItemChangedEvent.cs
- SettingsSection.cs
- Comparer.cs
- WebPartMenuStyle.cs
- SpecialFolderEnumConverter.cs
- SqlConnectionString.cs
- TrustSection.cs
- HwndKeyboardInputProvider.cs
- CacheSection.cs
- TimeSpanValidatorAttribute.cs
- EntityViewGenerationConstants.cs
- ConstraintStruct.cs
- PrivilegedConfigurationManager.cs
- CfgParser.cs
- SQLRoleProvider.cs
- SystemIcmpV6Statistics.cs
- ProgressBarBrushConverter.cs
- CommandArguments.cs
- WizardPanel.cs
- StrokeCollectionDefaultValueFactory.cs
- SqlNode.cs
- Int32Storage.cs
- DataGridItem.cs
- DSASignatureFormatter.cs
- EventHandlersStore.cs
- CompareInfo.cs
- NetworkInterface.cs
- ExclusiveHandle.cs
- HttpModulesSection.cs
- ObjectDataSourceStatusEventArgs.cs
- IPAddressCollection.cs
- Condition.cs
- OleStrCAMarshaler.cs
- XmlSerializerFactory.cs
- HttpListenerRequest.cs
- DataErrorValidationRule.cs
- BitmapFrame.cs
- DataGridViewAutoSizeModeEventArgs.cs
- FactoryMaker.cs
- _SecureChannel.cs
- EventMappingSettings.cs
- MsmqIntegrationInputChannel.cs
- DependencyPropertyAttribute.cs
- Visitor.cs
- MissingSatelliteAssemblyException.cs
- ObjectDataSource.cs
- ToolStripComboBox.cs
- SqlRowUpdatingEvent.cs
- Int16Converter.cs
- QueryContinueDragEvent.cs
- ContentPropertyAttribute.cs
- PageVisual.cs
- MetafileHeader.cs
- BuildResult.cs
- RegexStringValidator.cs
- TimeoutException.cs
- ForEachDesigner.xaml.cs
- BaseDataBoundControl.cs
- PersonalizationEntry.cs
- DataGridViewCellStyle.cs
- MemberInfoSerializationHolder.cs
- NameService.cs
- InternalUserCancelledException.cs
- FixedFlowMap.cs
- FontWeight.cs
- DataGridViewRowsAddedEventArgs.cs
- PlainXmlSerializer.cs
- HtmlTextViewAdapter.cs
- _AutoWebProxyScriptWrapper.cs
- OdbcHandle.cs
- MimeReturn.cs
- CodeNamespaceImport.cs
- AutomationProperty.cs
- _UriTypeConverter.cs
- BindingExpressionBase.cs
- NamedElement.cs
- PKCS1MaskGenerationMethod.cs
- FamilyTypefaceCollection.cs
- RegionData.cs
- ReliableRequestSessionChannel.cs
- ProxyHelper.cs
- XPathMessageFilterTable.cs
- TraceListener.cs
- GenerateHelper.cs