Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / ExpressionBinding.cs / 1 / ExpressionBinding.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Globalization; using System.Security.Permissions; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionBinding { private string _propertyName; private Type _propertyType; private string _expression; private string _expressionPrefix; private bool _generated; private object _parsedExpressionData; public ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression) : this(propertyName, propertyType, expressionPrefix, expression, false, null) { } ////// internal ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression, bool generated, object parsedExpressionData) { _propertyName = propertyName; _propertyType = propertyType; _expression = expression; _expressionPrefix = expressionPrefix; _generated = generated; _parsedExpressionData = parsedExpressionData; } ////// public string Expression { get { return _expression; } set { _expression = value; } } ////// G public string ExpressionPrefix { get { return _expressionPrefix; } set { _expressionPrefix = value; } } public bool Generated { get { return _generated; } } public object ParsedExpressionData { get { return _parsedExpressionData; } } ////// public string PropertyName { get { return _propertyName; } } ////// public Type PropertyType { get { return _propertyType; } } ////// public override int GetHashCode() { return _propertyName.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } ////// public override bool Equals(object obj) { if ((obj != null) && (obj is ExpressionBinding)) { ExpressionBinding binding = (ExpressionBinding)obj; return StringUtil.EqualsIgnoreCase(_propertyName, binding.PropertyName); } return false; } } } // 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.ComponentModel.Design; using System.Data; using System.Globalization; using System.Security.Permissions; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionBinding { private string _propertyName; private Type _propertyType; private string _expression; private string _expressionPrefix; private bool _generated; private object _parsedExpressionData; public ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression) : this(propertyName, propertyType, expressionPrefix, expression, false, null) { } ////// internal ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression, bool generated, object parsedExpressionData) { _propertyName = propertyName; _propertyType = propertyType; _expression = expression; _expressionPrefix = expressionPrefix; _generated = generated; _parsedExpressionData = parsedExpressionData; } ////// public string Expression { get { return _expression; } set { _expression = value; } } ////// G public string ExpressionPrefix { get { return _expressionPrefix; } set { _expressionPrefix = value; } } public bool Generated { get { return _generated; } } public object ParsedExpressionData { get { return _parsedExpressionData; } } ////// public string PropertyName { get { return _propertyName; } } ////// public Type PropertyType { get { return _propertyType; } } ////// public override int GetHashCode() { return _propertyName.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } ////// public override bool Equals(object obj) { if ((obj != null) && (obj is ExpressionBinding)) { ExpressionBinding binding = (ExpressionBinding)obj; return StringUtil.EqualsIgnoreCase(_propertyName, binding.PropertyName); } return false; } } } // 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
- ResourceDescriptionAttribute.cs
- QuestionEventArgs.cs
- BufferAllocator.cs
- DataRecordObjectView.cs
- UriScheme.cs
- WsdlImporterElement.cs
- Function.cs
- ToolStripPanel.cs
- AutomationIdentifierGuids.cs
- EncryptedPackage.cs
- SecurityContext.cs
- TdsParserStaticMethods.cs
- X509CertificateRecipientServiceCredential.cs
- ISessionStateStore.cs
- AnimationTimeline.cs
- SQLDouble.cs
- DataFormats.cs
- TemplatedWizardStep.cs
- FlowNode.cs
- AuthenticationManager.cs
- HtmlShim.cs
- GeneralTransformGroup.cs
- FieldToken.cs
- Html32TextWriter.cs
- COM2ExtendedUITypeEditor.cs
- Rect3DConverter.cs
- TransactionTraceIdentifier.cs
- OleDbConnectionInternal.cs
- MemberJoinTreeNode.cs
- PerfCounters.cs
- ConfigXmlComment.cs
- DelegatingTypeDescriptionProvider.cs
- URI.cs
- FormParameter.cs
- CalendarSelectionChangedEventArgs.cs
- IArgumentProvider.cs
- DrawingAttributeSerializer.cs
- MemoryStream.cs
- EventLogLink.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- TextDecorationCollection.cs
- SqlConnectionHelper.cs
- SQLDateTime.cs
- WindowsPrincipal.cs
- DataServiceQueryException.cs
- HtmlLink.cs
- PackageDigitalSignatureManager.cs
- SerTrace.cs
- TextCharacters.cs
- ProfileProvider.cs
- EncoderReplacementFallback.cs
- Point.cs
- DataGridHeaderBorder.cs
- OverlappedAsyncResult.cs
- ToolTip.cs
- WrappedKeySecurityToken.cs
- OdbcParameter.cs
- WebControlAdapter.cs
- GridViewSelectEventArgs.cs
- ListViewGroup.cs
- _Win32.cs
- ToolboxItemCollection.cs
- StorageScalarPropertyMapping.cs
- COM2ComponentEditor.cs
- Select.cs
- TypefaceMap.cs
- XpsFixedDocumentReaderWriter.cs
- ModelEditingScope.cs
- StringUtil.cs
- CellLabel.cs
- CountdownEvent.cs
- MenuItemBinding.cs
- MailMessage.cs
- IDataContractSurrogate.cs
- SettingsAttributeDictionary.cs
- DecimalKeyFrameCollection.cs
- ScriptReferenceEventArgs.cs
- ClientScriptManager.cs
- FilterQuery.cs
- NavigationWindow.cs
- SafeNativeMethods.cs
- BinaryParser.cs
- SqlDataSourceCommandEventArgs.cs
- ExternalException.cs
- BufferedOutputAsyncStream.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- HostSecurityManager.cs
- FixedSOMImage.cs
- WindowsHyperlink.cs
- WebPartDeleteVerb.cs
- ResXResourceReader.cs
- SplineQuaternionKeyFrame.cs
- DataExpression.cs
- ZipIOCentralDirectoryBlock.cs
- QilSortKey.cs
- DbgUtil.cs
- CLSCompliantAttribute.cs
- HttpProtocolReflector.cs
- SubstitutionList.cs
- IsolationInterop.cs