Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1 / DataBindingHandlerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.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
- PropertyPath.cs
- ComplexType.cs
- AttachedAnnotation.cs
- EdgeModeValidation.cs
- DesignerSerializationVisibilityAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- StdValidatorsAndConverters.cs
- ContentTextAutomationPeer.cs
- XamlReaderHelper.cs
- BuildProvidersCompiler.cs
- PtsContext.cs
- BinarySerializer.cs
- AspCompat.cs
- MaskInputRejectedEventArgs.cs
- PagePropertiesChangingEventArgs.cs
- EntityException.cs
- ReadWriteObjectLock.cs
- InstancePersistenceCommandException.cs
- FixUpCollection.cs
- TextSegment.cs
- CodeAssignStatement.cs
- ToolStrip.cs
- MachineKey.cs
- DocumentApplicationJournalEntryEventArgs.cs
- ECDsaCng.cs
- CustomAttribute.cs
- WebResponse.cs
- RtfNavigator.cs
- HttpClientCertificate.cs
- RunClient.cs
- XmlDataCollection.cs
- TrustLevelCollection.cs
- AttributedMetaModel.cs
- ProcessMonitor.cs
- MergeFailedEvent.cs
- SoundPlayerAction.cs
- _LocalDataStoreMgr.cs
- PrimitiveType.cs
- QilIterator.cs
- Boolean.cs
- PersonalizationEntry.cs
- PenThread.cs
- FixedSOMFixedBlock.cs
- TypeConverterHelper.cs
- CheckedListBox.cs
- XamlWriter.cs
- MediaTimeline.cs
- SeekableReadStream.cs
- UserControlBuildProvider.cs
- ComplexType.cs
- CurrentChangingEventArgs.cs
- ActiveXContainer.cs
- DeviceContext2.cs
- X509CertificateRecipientClientCredential.cs
- NavigationWindow.cs
- ListBoxItem.cs
- DTCTransactionManager.cs
- SchemaImporter.cs
- CustomAttribute.cs
- SqlBulkCopyColumnMappingCollection.cs
- SmtpFailedRecipientException.cs
- Container.cs
- GridViewItemAutomationPeer.cs
- NumberSubstitution.cs
- NotifyIcon.cs
- BindingManagerDataErrorEventArgs.cs
- WebPartZone.cs
- TemplateInstanceAttribute.cs
- XD.cs
- DataGridItem.cs
- TimeoutValidationAttribute.cs
- InOutArgument.cs
- StringWriter.cs
- TraceSource.cs
- XamlTemplateSerializer.cs
- TableAdapterManagerHelper.cs
- ParseNumbers.cs
- SoapElementAttribute.cs
- RenderingBiasValidation.cs
- ConfigurationManagerHelperFactory.cs
- SimpleWorkerRequest.cs
- TrackingStringDictionary.cs
- ReadOnlyHierarchicalDataSource.cs
- PathNode.cs
- TraceHandlerErrorFormatter.cs
- TdsParameterSetter.cs
- UIElement3D.cs
- DocumentAutomationPeer.cs
- CapabilitiesUse.cs
- HttpWebRequest.cs
- ImageAutomationPeer.cs
- BindingSourceDesigner.cs
- listviewsubitemcollectioneditor.cs
- DbProviderManifest.cs
- GenerateScriptTypeAttribute.cs
- HtmlLink.cs
- DataGridViewLayoutData.cs
- AssemblyAttributesGoHere.cs
- Int32CAMarshaler.cs
- AccessDataSource.cs