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
- MetabaseReader.cs
- ValidatedControlConverter.cs
- ValidationHelper.cs
- CodeDomExtensionMethods.cs
- ConsoleCancelEventArgs.cs
- Operand.cs
- FormsIdentity.cs
- InternalDuplexChannelFactory.cs
- PassportAuthenticationEventArgs.cs
- TemplatedMailWebEventProvider.cs
- CodeGenerator.cs
- GroupItemAutomationPeer.cs
- ResourcePart.cs
- SqlConnectionStringBuilder.cs
- DataSetMappper.cs
- OdbcConnectionHandle.cs
- COM2EnumConverter.cs
- EditorPart.cs
- AttributeProviderAttribute.cs
- FixedPageProcessor.cs
- BitmapEffectGroup.cs
- SoapElementAttribute.cs
- ErrorEventArgs.cs
- TypePropertyEditor.cs
- XdrBuilder.cs
- ServiceContractGenerator.cs
- VersionPair.cs
- XmlSchemaImport.cs
- TypeSystem.cs
- HandleExceptionArgs.cs
- PersonalizationStateInfo.cs
- BrowserInteropHelper.cs
- QilStrConcat.cs
- MessageSmuggler.cs
- TextWriterEngine.cs
- XmlUnspecifiedAttribute.cs
- OrderByBuilder.cs
- ContentElement.cs
- TcpActivation.cs
- TemplatedEditableDesignerRegion.cs
- GridViewAutoFormat.cs
- Subtree.cs
- AddInAdapter.cs
- ScrollChrome.cs
- DataBoundLiteralControl.cs
- PageCodeDomTreeGenerator.cs
- DataKeyPropertyAttribute.cs
- DesignerDataColumn.cs
- DataGridView.cs
- AsymmetricSignatureDeformatter.cs
- HttpApplication.cs
- ScalarConstant.cs
- UidPropertyAttribute.cs
- DefaultValidator.cs
- XmlHierarchicalEnumerable.cs
- AdvancedBindingEditor.cs
- ErrorWrapper.cs
- KeySpline.cs
- HtmlDocument.cs
- ListParaClient.cs
- MenuItem.cs
- InputLanguageManager.cs
- ToolStripItemEventArgs.cs
- RenameRuleObjectDialog.cs
- CustomAssemblyResolver.cs
- SerializationFieldInfo.cs
- BamlResourceContent.cs
- MappingSource.cs
- StoreItemCollection.cs
- DataBoundControlAdapter.cs
- DecimalFormatter.cs
- BindingSource.cs
- pingexception.cs
- CompoundFileStreamReference.cs
- HostExecutionContextManager.cs
- EncoderParameters.cs
- LayoutExceptionEventArgs.cs
- MorphHelper.cs
- InstanceOwner.cs
- TreeViewItemAutomationPeer.cs
- RankException.cs
- GcSettings.cs
- ExtensionDataObject.cs
- SecurityResources.cs
- PhysicalFontFamily.cs
- LazyInitializer.cs
- WSSecureConversation.cs
- MatrixTransform.cs
- FirstMatchCodeGroup.cs
- TimestampInformation.cs
- ProxyAttribute.cs
- SmtpAuthenticationManager.cs
- ToolStripLabel.cs
- TranslateTransform3D.cs
- XPathNavigator.cs
- SafeProcessHandle.cs
- RawTextInputReport.cs
- WindowsStreamSecurityElement.cs
- InputReferenceExpression.cs
- SmtpLoginAuthenticationModule.cs