Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / PointCollection.cs / 1305600 / PointCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Point collection partial class. // // // History: // 11/09/05 : marka - Created // //--------------------------------------------------------------------------- using System.Windows; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; using System; using System.IO; using MS.Internal.Media; namespace System.Windows.Media { public partial class PointCollection { ////// Deserialize this object from BAML /// [FriendAccessAllowed] // Built into Core, also used by Framework. internal static object DeserializeFrom(BinaryReader reader) { // Get the size. uint count = reader.ReadUInt32() ; PointCollection collection = new PointCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point point = new Point( XamlSerializationHelper.ReadDouble( reader ), XamlSerializationHelper.ReadDouble( reader ) ) ; collection.Add( point ); } return collection ; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Point collection partial class. // // // History: // 11/09/05 : marka - Created // //--------------------------------------------------------------------------- using System.Windows; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; using System; using System.IO; using MS.Internal.Media; namespace System.Windows.Media { public partial class PointCollection { ////// Deserialize this object from BAML /// [FriendAccessAllowed] // Built into Core, also used by Framework. internal static object DeserializeFrom(BinaryReader reader) { // Get the size. uint count = reader.ReadUInt32() ; PointCollection collection = new PointCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point point = new Point( XamlSerializationHelper.ReadDouble( reader ), XamlSerializationHelper.ReadDouble( reader ) ) ; collection.Add( point ); } return collection ; } } } // 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
- AnimationClockResource.cs
- FormsAuthenticationConfiguration.cs
- PermissionSetTriple.cs
- ServiceParser.cs
- HttpProfileBase.cs
- ScriptingSectionGroup.cs
- ProxyGenerator.cs
- SchemaCollectionPreprocessor.cs
- EntityCodeGenerator.cs
- DesignerHierarchicalDataSourceView.cs
- Button.cs
- TraceHandlerErrorFormatter.cs
- EventHandlerService.cs
- ShaderEffect.cs
- UrlRoutingHandler.cs
- coordinatorfactory.cs
- TypeKeyValue.cs
- OleDbSchemaGuid.cs
- EntityDataSourceContainerNameItem.cs
- MruCache.cs
- ObjectDataSource.cs
- QueryableDataSourceView.cs
- GenericsInstances.cs
- SettingsPropertyCollection.cs
- XmlAggregates.cs
- IndexedGlyphRun.cs
- ProxyElement.cs
- EntityDataSourceWizardForm.cs
- XamlPoint3DCollectionSerializer.cs
- StateMachineWorkflow.cs
- RangeValuePattern.cs
- GlyphRunDrawing.cs
- FileReservationCollection.cs
- TableHeaderCell.cs
- WebBrowserContainer.cs
- XPathParser.cs
- ForceCopyBuildProvider.cs
- AccessKeyManager.cs
- SqlGenerator.cs
- HMACSHA256.cs
- DateTimeFormat.cs
- SerializationInfo.cs
- StylusPointPropertyUnit.cs
- XmlSchemaSimpleContent.cs
- DataPointer.cs
- UnsafeNativeMethods.cs
- BidOverLoads.cs
- XMLSyntaxException.cs
- SR.cs
- CompositeDispatchFormatter.cs
- TableLayoutStyle.cs
- CalendarAutoFormat.cs
- GlobalizationSection.cs
- WebSysDisplayNameAttribute.cs
- CreateUserWizard.cs
- MimeTypePropertyAttribute.cs
- ResourceManagerWrapper.cs
- ToolStripComboBox.cs
- CreateRefExpr.cs
- Memoizer.cs
- TokenizerHelper.cs
- TextTreeNode.cs
- AmbientEnvironment.cs
- FormViewPageEventArgs.cs
- OfTypeExpression.cs
- BitStack.cs
- XmlLinkedNode.cs
- ContainsSearchOperator.cs
- SpeechRecognizer.cs
- MenuItemCollectionEditorDialog.cs
- DataColumnMapping.cs
- WindowsProgressbar.cs
- SQLDoubleStorage.cs
- MessageAction.cs
- OleDbParameterCollection.cs
- WebBrowserBase.cs
- Page.cs
- MatrixAnimationUsingKeyFrames.cs
- x509utils.cs
- BitmapCodecInfoInternal.cs
- XmlArrayAttribute.cs
- SafePointer.cs
- WindowsFormsHelpers.cs
- BamlRecords.cs
- DbFunctionCommandTree.cs
- SemanticBasicElement.cs
- Viewport3DVisual.cs
- ClickablePoint.cs
- StylusButtonCollection.cs
- DbQueryCommandTree.cs
- ListChunk.cs
- PropertyRef.cs
- MissingManifestResourceException.cs
- EdmPropertyAttribute.cs
- AsyncResult.cs
- OutputCacheProfileCollection.cs
- Accessors.cs
- XslTransformFileEditor.cs
- xmlglyphRunInfo.cs
- KeyConverter.cs