Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / Serialization / Formatters / Binary / BinaryMethodMessage.cs / 1 / BinaryMethodMessage.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.Serialization.Formatters.Binary { using System; using System.Collections; using System.Runtime.Remoting.Messaging; using System.Reflection; [Serializable()] internal sealed class BinaryMethodCallMessage { Object[] _inargs = null; String _methodName = null; String _typeName = null; Object _methodSignature = null; Type[] _instArgs = null; Object[] _args = null; LogicalCallContext _logicalCallContext = null; Object[] _properties = null; internal BinaryMethodCallMessage(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, LogicalCallContext callContext, Object[] properties) { _methodName = methodName; _typeName = typeName; //_uri = uri; if (args == null) args = new Object[0]; _inargs = args; _args = args; _instArgs = instArgs; _methodSignature = methodSignature; if (callContext == null) _logicalCallContext = new LogicalCallContext(); else _logicalCallContext = callContext; _properties = properties; } public String MethodName { get {return _methodName;} } public String TypeName { get {return _typeName;} } public Type[] InstantiationArgs { get {return _instArgs;} } public Object MethodSignature { get {return _methodSignature;} } public Object[] Args { get {return _args;} } public LogicalCallContext LogicalCallContext { get {return _logicalCallContext;} } public bool HasProperties { get {return (_properties != null);} } internal void PopulateMessageProperties(IDictionary dict) { foreach (DictionaryEntry de in _properties) { dict[de.Key] = de.Value; } } } [Serializable()] internal class BinaryMethodReturnMessage { Object[] _outargs = null; Exception _exception = null; Object _returnValue = null; Object[] _args = null; LogicalCallContext _logicalCallContext = null; Object[] _properties = null; internal BinaryMethodReturnMessage(Object returnValue, Object[] args, Exception e, LogicalCallContext callContext, Object[] properties) { _returnValue = returnValue; if (args == null) args = new Object[0]; _outargs = args; _args= args; _exception = e; if (callContext == null) _logicalCallContext = new LogicalCallContext(); else _logicalCallContext = callContext; _properties = properties; } public Exception Exception { get {return _exception;} } public Object ReturnValue { get {return _returnValue;} } public Object[] Args { get {return _args;} } public LogicalCallContext LogicalCallContext { get {return _logicalCallContext;} } public bool HasProperties { get {return (_properties != null);} } internal void PopulateMessageProperties(IDictionary dict) { foreach (DictionaryEntry de in _properties) { dict[de.Key] = de.Value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewRowPrePaintEventArgs.cs
- DataBoundLiteralControl.cs
- FacetEnabledSchemaElement.cs
- CodeEventReferenceExpression.cs
- ListViewSelectEventArgs.cs
- TagElement.cs
- AsymmetricKeyExchangeDeformatter.cs
- EmptyControlCollection.cs
- ErrorFormatter.cs
- DataAdapter.cs
- DataFormats.cs
- safex509handles.cs
- EntityDataSourceValidationException.cs
- ErrorTableItemStyle.cs
- TextEffect.cs
- ReplacementText.cs
- ConfigurationException.cs
- Brush.cs
- SimpleApplicationHost.cs
- RawStylusActions.cs
- PasswordBoxAutomationPeer.cs
- CodeThrowExceptionStatement.cs
- SafeCoTaskMem.cs
- ToolStripStatusLabel.cs
- HtmlInputControl.cs
- ConfigXmlDocument.cs
- EntitySqlException.cs
- _FtpControlStream.cs
- DataListDesigner.cs
- InputScopeAttribute.cs
- RequestQueue.cs
- SafeEventLogWriteHandle.cs
- OdbcHandle.cs
- QueryPageSettingsEventArgs.cs
- XamlGridLengthSerializer.cs
- SqlRewriteScalarSubqueries.cs
- LineBreakRecord.cs
- CapacityStreamGeometryContext.cs
- WpfKnownMember.cs
- OpenTypeLayoutCache.cs
- ConfigurationFileMap.cs
- XmlProcessingInstruction.cs
- AnnotationStore.cs
- TypeName.cs
- EntityDataSourceDesigner.cs
- Funcletizer.cs
- CompoundFileDeflateTransform.cs
- DBCommandBuilder.cs
- TypeConverterHelper.cs
- HyperLink.cs
- WebScriptClientGenerator.cs
- LocalizeDesigner.cs
- DependencyPropertyKind.cs
- CalculatedColumn.cs
- NumericUpDownAccelerationCollection.cs
- XMLUtil.cs
- Tokenizer.cs
- SqlProcedureAttribute.cs
- DbgCompiler.cs
- DropTarget.cs
- DetailsViewCommandEventArgs.cs
- Polyline.cs
- SimpleLine.cs
- LabelEditEvent.cs
- UInt32Converter.cs
- FrameDimension.cs
- XsdValidatingReader.cs
- ExcCanonicalXml.cs
- WebPartDisplayModeEventArgs.cs
- ElementNotEnabledException.cs
- HttpResponseBase.cs
- Path.cs
- BamlLocalizableResource.cs
- ErrorHandler.cs
- TypeDescriptionProviderAttribute.cs
- OdbcTransaction.cs
- Timer.cs
- ListSourceHelper.cs
- WebDescriptionAttribute.cs
- IdnMapping.cs
- TimeSpanValidator.cs
- XmlMtomReader.cs
- safelinkcollection.cs
- SmtpFailedRecipientException.cs
- TransformDescriptor.cs
- Grid.cs
- PropertyBuilder.cs
- StylusTip.cs
- Int16Storage.cs
- SRGSCompiler.cs
- WebPartManager.cs
- SqlRecordBuffer.cs
- SqlException.cs
- DesignerAttribute.cs
- TransactionFormatter.cs
- XPathMessageFilter.cs
- EqualityComparer.cs
- CodeSnippetExpression.cs
- ObjectPersistData.cs
- ExpandButtonVisibilityConverter.cs