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
- DataServiceContext.cs
- PointCollectionConverter.cs
- xml.cs
- ConsumerConnectionPointCollection.cs
- WindowsGraphics2.cs
- WebBrowserProgressChangedEventHandler.cs
- DataGridViewUtilities.cs
- LinearGradientBrush.cs
- MatrixUtil.cs
- XmlILAnnotation.cs
- FileDialogCustomPlacesCollection.cs
- safex509handles.cs
- XmlSchemaSimpleTypeList.cs
- SystemParameters.cs
- ClickablePoint.cs
- QilExpression.cs
- DataGridToolTip.cs
- BuildProvider.cs
- ThousandthOfEmRealDoubles.cs
- RoleGroupCollection.cs
- CommentGlyph.cs
- DBSqlParserColumnCollection.cs
- RoleGroup.cs
- metadatamappinghashervisitor.cs
- HitTestWithPointDrawingContextWalker.cs
- OleDbCommand.cs
- RequestCachingSection.cs
- HttpCachePolicy.cs
- TextureBrush.cs
- TemplatingOptionsDialog.cs
- DrawingCollection.cs
- XmlAutoDetectWriter.cs
- WebBrowserNavigatingEventHandler.cs
- TableItemStyle.cs
- CardSpaceSelector.cs
- BehaviorEditorPart.cs
- SwitchLevelAttribute.cs
- ByteStorage.cs
- CfgArc.cs
- ToolStripManager.cs
- DefaultValueAttribute.cs
- ConfigXmlDocument.cs
- SystemIcmpV6Statistics.cs
- SqlCacheDependencySection.cs
- WriterOutput.cs
- ReferenceService.cs
- OrderByQueryOptionExpression.cs
- MediaSystem.cs
- SymbolType.cs
- DropSource.cs
- RelatedPropertyManager.cs
- SystemIPAddressInformation.cs
- ProcessModuleCollection.cs
- Adorner.cs
- HttpException.cs
- TreeBuilder.cs
- HorizontalAlignConverter.cs
- ContentElementCollection.cs
- GridViewUpdatedEventArgs.cs
- CqlWriter.cs
- NonClientArea.cs
- ConnectivityStatus.cs
- OciLobLocator.cs
- DataGridItem.cs
- HttpWebRequest.cs
- TargetFrameworkAttribute.cs
- XmlSchemaAppInfo.cs
- QilReference.cs
- SiteMapDataSource.cs
- ConstraintConverter.cs
- LicFileLicenseProvider.cs
- SecurityChannelFactory.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- PartialCachingControl.cs
- MaskedTextBoxDesigner.cs
- FilterQueryOptionExpression.cs
- SortDescription.cs
- CryptoApi.cs
- DateTimeValueSerializer.cs
- ListViewGroup.cs
- HashCodeCombiner.cs
- BCLDebug.cs
- Odbc32.cs
- DictionarySectionHandler.cs
- CommonGetThemePartSize.cs
- DES.cs
- HMAC.cs
- SqlAggregateChecker.cs
- X509CertificateTokenFactoryCredential.cs
- IODescriptionAttribute.cs
- TimeoutConverter.cs
- SamlAuthenticationStatement.cs
- XmlSchemaSimpleTypeUnion.cs
- ServerValidateEventArgs.cs
- TextParaClient.cs
- TrackBar.cs
- ClrPerspective.cs
- XmlSchemaAny.cs
- Duration.cs
- RequestQueue.cs