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
- ArrayElementGridEntry.cs
- TextPointerBase.cs
- ParseChildrenAsPropertiesAttribute.cs
- InstanceNameConverter.cs
- BitmapMetadataEnumerator.cs
- KeyTime.cs
- ReplyChannelBinder.cs
- InvalidFilterCriteriaException.cs
- Rights.cs
- MessageSecurityProtocolFactory.cs
- Slider.cs
- EventSourceCreationData.cs
- UpdateCompiler.cs
- NaturalLanguageHyphenator.cs
- PictureBox.cs
- HebrewCalendar.cs
- Geometry3D.cs
- BoundsDrawingContextWalker.cs
- InvalidPropValue.cs
- ObjectKeyFrameCollection.cs
- HttpProfileGroupBase.cs
- Pair.cs
- IisTraceWebEventProvider.cs
- ApplicationDirectoryMembershipCondition.cs
- DataGridViewColumnConverter.cs
- MeshGeometry3D.cs
- File.cs
- IFlowDocumentViewer.cs
- ValueProviderWrapper.cs
- ColumnResult.cs
- DataQuery.cs
- COM2IPerPropertyBrowsingHandler.cs
- OneToOneMappingSerializer.cs
- ObjectDataSourceFilteringEventArgs.cs
- SqlDependencyUtils.cs
- HtmlEncodedRawTextWriter.cs
- FastPropertyAccessor.cs
- ByteAnimation.cs
- ColorEditor.cs
- LinkDescriptor.cs
- VScrollBar.cs
- ModelItemImpl.cs
- BitmapEffectGeneralTransform.cs
- MarkupCompilePass1.cs
- TextTreeRootNode.cs
- COM2Properties.cs
- CompilerState.cs
- DocobjHost.cs
- XXXOnTypeBuilderInstantiation.cs
- KnownTypeAttribute.cs
- SimpleWorkerRequest.cs
- RoutedEvent.cs
- SqlDataSourceCommandEventArgs.cs
- EnumBuilder.cs
- FullTextState.cs
- StreamWriter.cs
- ClientApiGenerator.cs
- TemplateFactory.cs
- AppSettingsSection.cs
- WebPartDisplayMode.cs
- MethodCallTranslator.cs
- GeneralTransformGroup.cs
- UnsafeNativeMethods.cs
- ReachDocumentPageSerializer.cs
- PropertyRecord.cs
- ConfigurationPropertyAttribute.cs
- ClaimTypeElement.cs
- SystemIcmpV4Statistics.cs
- _ListenerRequestStream.cs
- HttpContext.cs
- KerberosSecurityTokenProvider.cs
- HttpValueCollection.cs
- CodeTryCatchFinallyStatement.cs
- UnicodeEncoding.cs
- SiteOfOriginPart.cs
- MethodInfo.cs
- CrossAppDomainChannel.cs
- ProxyGenerator.cs
- WindowsTitleBar.cs
- Choices.cs
- BitConverter.cs
- Base64WriteStateInfo.cs
- XmlArrayItemAttribute.cs
- XPathAncestorIterator.cs
- TemplateBamlTreeBuilder.cs
- PartitionResolver.cs
- BrowserCapabilitiesCodeGenerator.cs
- InfoCardKeyedHashAlgorithm.cs
- WindowsGraphicsCacheManager.cs
- BitmapEffectCollection.cs
- WindowsGraphicsWrapper.cs
- AsyncOperation.cs
- WebPageTraceListener.cs
- LabelLiteral.cs
- _ConnectStream.cs
- StrokeRenderer.cs
- AutomationInteropProvider.cs
- XsdValidatingReader.cs
- connectionpool.cs
- AnnotationAdorner.cs