Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1305376 / 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)] 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)] 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
- ParameterCollectionEditorForm.cs
- WizardPanelChangingEventArgs.cs
- URLEditor.cs
- XmlAttributeCollection.cs
- XmlChoiceIdentifierAttribute.cs
- BooleanSwitch.cs
- HttpClientChannel.cs
- Vector3DConverter.cs
- BufferModeSettings.cs
- TreeNode.cs
- XmlCDATASection.cs
- FormattedText.cs
- ByteArrayHelperWithString.cs
- DefaultTextStoreTextComposition.cs
- WindowsEditBoxRange.cs
- ProxyWebPart.cs
- SqlCharStream.cs
- BehaviorDragDropEventArgs.cs
- HealthMonitoringSectionHelper.cs
- CodeDirectionExpression.cs
- EmbeddedObject.cs
- AudioException.cs
- DefaultSection.cs
- ZoomingMessageFilter.cs
- CompiledELinqQueryState.cs
- StoreItemCollection.cs
- DataListItemEventArgs.cs
- BufferedGraphics.cs
- Path.cs
- SystemDiagnosticsSection.cs
- StringValueConverter.cs
- Run.cs
- KeyEvent.cs
- ExpressionVisitor.cs
- SafeHandle.cs
- HtmlControl.cs
- VectorCollectionConverter.cs
- ReferencedAssembly.cs
- FrameworkTextComposition.cs
- DocumentApplicationState.cs
- TransformerInfo.cs
- mediapermission.cs
- SettingsContext.cs
- MD5CryptoServiceProvider.cs
- FileDialog_Vista_Interop.cs
- WebPartManagerDesigner.cs
- RedistVersionInfo.cs
- ReplyChannelBinder.cs
- RadioButtonBaseAdapter.cs
- QuotaThrottle.cs
- DirectoryInfo.cs
- DocumentGrid.cs
- DataGridCellItemAutomationPeer.cs
- SpeechAudioFormatInfo.cs
- SemaphoreSlim.cs
- EntityDataSourceColumn.cs
- SecurityStateEncoder.cs
- Group.cs
- OdbcTransaction.cs
- XmlElementAttribute.cs
- XPathDocumentBuilder.cs
- StyleBamlTreeBuilder.cs
- DragDeltaEventArgs.cs
- NonParentingControl.cs
- AttributeEmitter.cs
- EntityDataSourceSelectedEventArgs.cs
- MemberAccessException.cs
- HandlerBase.cs
- SmtpTransport.cs
- SystemIPGlobalStatistics.cs
- WebBrowser.cs
- SqlXml.cs
- CalendarData.cs
- VisualStyleTypesAndProperties.cs
- UnsafeNativeMethods.cs
- SaveWorkflowCommand.cs
- PathFigureCollectionConverter.cs
- ReflectionTypeLoadException.cs
- PropertyMapper.cs
- ToolStripSettings.cs
- TransactionBehavior.cs
- XPathDocumentIterator.cs
- DataRelationPropertyDescriptor.cs
- ScaleTransform3D.cs
- TextFormatterImp.cs
- StrongNameKeyPair.cs
- BuildResultCache.cs
- AssemblyAttributes.cs
- ServiceChannelFactory.cs
- ImageSource.cs
- SystemIcmpV6Statistics.cs
- OSFeature.cs
- DataGridViewImageCell.cs
- DSACryptoServiceProvider.cs
- SpinWait.cs
- TemplateKeyConverter.cs
- NativeMethods.cs
- CopyOfAction.cs
- StructureChangedEventArgs.cs
- Application.cs