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
- Point3DCollectionConverter.cs
- ToolZone.cs
- BrowserCapabilitiesCompiler.cs
- SafePEFileHandle.cs
- ScrollData.cs
- OdbcError.cs
- PageBuildProvider.cs
- TextSimpleMarkerProperties.cs
- BufferedGraphicsManager.cs
- MethodImplAttribute.cs
- WebPartZoneBase.cs
- LayoutTableCell.cs
- RefreshInfo.cs
- ExcCanonicalXml.cs
- ScriptingJsonSerializationSection.cs
- DataSourceCollectionBase.cs
- Camera.cs
- SimpleBitVector32.cs
- MembershipValidatePasswordEventArgs.cs
- ToolStripPanel.cs
- ColorBlend.cs
- SpellerError.cs
- WindowsSidIdentity.cs
- ScriptRef.cs
- UrlMappingCollection.cs
- XmlPreloadedResolver.cs
- BuiltInPermissionSets.cs
- DocumentPageView.cs
- SiteMembershipCondition.cs
- SafeThreadHandle.cs
- AssociationSetMetadata.cs
- Schedule.cs
- UnaryNode.cs
- UTF8Encoding.cs
- LocalizationParserHooks.cs
- FormViewUpdatedEventArgs.cs
- StylusEventArgs.cs
- DrawingDrawingContext.cs
- DesignerFrame.cs
- BamlLocalizer.cs
- HighContrastHelper.cs
- GradientSpreadMethodValidation.cs
- CdpEqualityComparer.cs
- MemberInitExpression.cs
- PeerNameRecord.cs
- InternalCache.cs
- TemplateBindingExtension.cs
- ContextMenuStripGroupCollection.cs
- XmlWhitespace.cs
- PageThemeBuildProvider.cs
- AsyncOperation.cs
- _NestedSingleAsyncResult.cs
- ListViewAutomationPeer.cs
- XmlSchemaAttributeGroup.cs
- ListViewSortEventArgs.cs
- WorkflowMessageEventArgs.cs
- InstanceData.cs
- DragDropManager.cs
- PropertyToken.cs
- Suspend.cs
- _CacheStreams.cs
- XmlProcessingInstruction.cs
- NotConverter.cs
- X509UI.cs
- MimeFormatter.cs
- DataGridViewCellEventArgs.cs
- TextSelectionHelper.cs
- SmiEventSink.cs
- CodeDomSerializer.cs
- NameValueCollection.cs
- TrustManagerMoreInformation.cs
- XamlWriter.cs
- DocumentReference.cs
- GroupBox.cs
- ImageIndexConverter.cs
- WsrmFault.cs
- ProcessHostMapPath.cs
- RefreshEventArgs.cs
- SQLRoleProvider.cs
- CollectionsUtil.cs
- ResourceLoader.cs
- ErrorWebPart.cs
- __ComObject.cs
- BulletedListEventArgs.cs
- BindingCompleteEventArgs.cs
- bindurihelper.cs
- OutputCacheProfileCollection.cs
- EmptyElement.cs
- EventListenerClientSide.cs
- SoapProtocolImporter.cs
- UnsafeNativeMethods.cs
- Label.cs
- SafeFreeMibTable.cs
- PasswordBoxAutomationPeer.cs
- EmptyEnumerator.cs
- SqlBinder.cs
- IListConverters.cs
- XmlSchemaInfo.cs
- OracleBFile.cs
- QEncodedStream.cs