Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Compilation / ExpressionEditorAttribute.cs / 1 / ExpressionEditorAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System.Security.Permissions; [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
- FactoryId.cs
- PresentationAppDomainManager.cs
- WindowsGraphicsCacheManager.cs
- SurrogateEncoder.cs
- XpsFilter.cs
- XmlReturnWriter.cs
- ConfigUtil.cs
- ComEventsMethod.cs
- TemplateParser.cs
- Variant.cs
- WindowsPen.cs
- XmlWriterTraceListener.cs
- MessageFault.cs
- DesignerSerializationManager.cs
- Catch.cs
- InitializationEventAttribute.cs
- FileSystemWatcher.cs
- PathData.cs
- WizardPanel.cs
- GroupItemAutomationPeer.cs
- SystemResources.cs
- IndicFontClient.cs
- ListCollectionView.cs
- Deflater.cs
- SQLBinaryStorage.cs
- AliasGenerator.cs
- MatrixKeyFrameCollection.cs
- FormatConvertedBitmap.cs
- SqlDuplicator.cs
- VerticalAlignConverter.cs
- MenuEventArgs.cs
- WebPartsPersonalization.cs
- XmlArrayAttribute.cs
- PolyBezierSegmentFigureLogic.cs
- CustomAttributeFormatException.cs
- NullReferenceException.cs
- CfgArc.cs
- XmlSubtreeReader.cs
- HttpException.cs
- StateBag.cs
- WebPartActionVerb.cs
- ToolboxItemAttribute.cs
- Byte.cs
- TreeNodeMouseHoverEvent.cs
- XmlUtil.cs
- PopOutPanel.cs
- DataGridViewCellValidatingEventArgs.cs
- SchemaDeclBase.cs
- ClientBuildManager.cs
- CodeComment.cs
- TdsRecordBufferSetter.cs
- WebPartTransformer.cs
- ComponentResourceKeyConverter.cs
- Int32AnimationUsingKeyFrames.cs
- designeractionlistschangedeventargs.cs
- X509Certificate2.cs
- UrlPropertyAttribute.cs
- SqlNodeTypeOperators.cs
- TemplatingOptionsDialog.cs
- XmlReflectionMember.cs
- CodeCatchClause.cs
- OdbcUtils.cs
- XslTransform.cs
- MultiView.cs
- SqlSupersetValidator.cs
- SearchForVirtualItemEventArgs.cs
- SmiEventSink.cs
- Vector3DCollectionValueSerializer.cs
- DateTimePicker.cs
- EntityTransaction.cs
- SafeFileMappingHandle.cs
- Pair.cs
- HttpCapabilitiesBase.cs
- GroupBox.cs
- SiteMapSection.cs
- XPathDocumentNavigator.cs
- WebPartConnectionsCancelEventArgs.cs
- ipaddressinformationcollection.cs
- DirtyTextRange.cs
- SQLGuid.cs
- Int64Converter.cs
- CopyOnWriteList.cs
- SingleAnimationUsingKeyFrames.cs
- DecimalAnimationBase.cs
- PerspectiveCamera.cs
- XmlKeywords.cs
- TokenBasedSetEnumerator.cs
- COM2IPerPropertyBrowsingHandler.cs
- ArgumentException.cs
- StructuredType.cs
- ValidationRule.cs
- RoutingChannelExtension.cs
- ConditionalAttribute.cs
- BinaryObjectReader.cs
- BitArray.cs
- MaterialGroup.cs
- OdbcRowUpdatingEvent.cs
- AssemblySettingAttributes.cs
- RemoteWebConfigurationHostServer.cs
- MeshGeometry3D.cs