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
- HandoffBehavior.cs
- DataGridViewCellStyle.cs
- HttpResponseInternalBase.cs
- CodeParameterDeclarationExpressionCollection.cs
- GlyphRunDrawing.cs
- SolidBrush.cs
- BitStream.cs
- Point3D.cs
- FileDialog.cs
- StylusButton.cs
- XPathQilFactory.cs
- CompressedStack.cs
- ActivationServices.cs
- CreateInstanceBinder.cs
- DateTimeHelper.cs
- QilTargetType.cs
- DataSourceControl.cs
- OleDbException.cs
- ReflectEventDescriptor.cs
- EventlogProvider.cs
- ParserStreamGeometryContext.cs
- TemplateColumn.cs
- ListItemsCollectionEditor.cs
- SyndicationDeserializer.cs
- Hex.cs
- DiagnosticTrace.cs
- ForceCopyBuildProvider.cs
- ContentOnlyMessage.cs
- SpeechUI.cs
- XmlMembersMapping.cs
- PolicyException.cs
- InternalDispatchObject.cs
- HwndStylusInputProvider.cs
- XsdBuilder.cs
- Encoder.cs
- WebPartDeleteVerb.cs
- FacetChecker.cs
- DataGridViewColumn.cs
- XmlSchemaType.cs
- BamlBinaryReader.cs
- ArrayWithOffset.cs
- InstallerTypeAttribute.cs
- TdsValueSetter.cs
- ButtonBaseAutomationPeer.cs
- GridViewCancelEditEventArgs.cs
- SqlNotificationRequest.cs
- TextContainerChangedEventArgs.cs
- ChameleonKey.cs
- CompilerScope.Storage.cs
- EnumerableRowCollectionExtensions.cs
- Rijndael.cs
- CodeDomSerializationProvider.cs
- ComboBox.cs
- CheckBox.cs
- Rights.cs
- UnsafeCollabNativeMethods.cs
- QuaternionConverter.cs
- XmlAnyElementAttribute.cs
- StoryFragments.cs
- Empty.cs
- TemplateEditingService.cs
- FloaterBaseParaClient.cs
- ConsumerConnectionPointCollection.cs
- Char.cs
- SoapSchemaMember.cs
- SecurityKeyUsage.cs
- HttpServerVarsCollection.cs
- OracleException.cs
- XmlSchemaInclude.cs
- URLAttribute.cs
- RegexRunner.cs
- SecurityStandardsManager.cs
- COM2PictureConverter.cs
- Config.cs
- StyleModeStack.cs
- SignedPkcs7.cs
- WebBrowserUriTypeConverter.cs
- WebColorConverter.cs
- DependencyPropertyChangedEventArgs.cs
- AttachmentService.cs
- TemplateBindingExpression.cs
- TextEndOfParagraph.cs
- GrammarBuilderPhrase.cs
- SerializationAttributes.cs
- TypeSource.cs
- SQLMembershipProvider.cs
- FlowDocumentReader.cs
- DrawingBrush.cs
- CTreeGenerator.cs
- VSWCFServiceContractGenerator.cs
- WebSysDescriptionAttribute.cs
- Int16Storage.cs
- EqualityComparer.cs
- TextEditor.cs
- XsltQilFactory.cs
- SqlClientMetaDataCollectionNames.cs
- Decoder.cs
- FormViewRow.cs
- DesignerDataTable.cs
- PageSetupDialog.cs