Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / PointCollection.cs / 1 / 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
- TypeTypeConverter.cs
- ActionFrame.cs
- MetadataPropertyvalue.cs
- TextOptionsInternal.cs
- TextBlock.cs
- PaperSize.cs
- HandleCollector.cs
- BitmapEditor.cs
- ListControl.cs
- SessionStateContainer.cs
- IndexedEnumerable.cs
- PointF.cs
- GraphicsPath.cs
- WebPartCollection.cs
- XmlSecureResolver.cs
- SqlXmlStorage.cs
- complextypematerializer.cs
- Pair.cs
- ExtenderProvidedPropertyAttribute.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Rotation3D.cs
- PersistenceIOParticipant.cs
- PackageRelationshipSelector.cs
- MetadataArtifactLoaderCompositeResource.cs
- HttpModuleAction.cs
- SqlDataSourceCommandEventArgs.cs
- EditorAttribute.cs
- SqlTypesSchemaImporter.cs
- WebConfigurationFileMap.cs
- PriorityBindingExpression.cs
- ChildTable.cs
- RecordConverter.cs
- SymbolUsageManager.cs
- IndependentAnimationStorage.cs
- Calendar.cs
- RestHandlerFactory.cs
- RecognizerBase.cs
- InputLangChangeEvent.cs
- EraserBehavior.cs
- FigureHelper.cs
- TimeIntervalCollection.cs
- AddInPipelineAttributes.cs
- WindowsAuthenticationEventArgs.cs
- XPathPatternParser.cs
- CompressEmulationStream.cs
- WindowAutomationPeer.cs
- AssociationSetMetadata.cs
- WorkerRequest.cs
- DataBinding.cs
- EntityCommandExecutionException.cs
- XmlSerializationGeneratedCode.cs
- ClientConfigurationHost.cs
- ActivityCodeDomReferenceService.cs
- RegexRunnerFactory.cs
- PackageProperties.cs
- WriteFileContext.cs
- documentsequencetextpointer.cs
- ExtendedPropertiesHandler.cs
- DoubleAnimationUsingKeyFrames.cs
- StaticSiteMapProvider.cs
- LineSegment.cs
- DurableMessageDispatchInspector.cs
- HtmlToClrEventProxy.cs
- DrawingContextFlattener.cs
- PermissionRequestEvidence.cs
- EntitySqlQueryCacheEntry.cs
- UrlEncodedParameterWriter.cs
- MasterPage.cs
- WebEventTraceProvider.cs
- GradientStop.cs
- WorkflowInstance.cs
- OperatingSystem.cs
- VisualTransition.cs
- WizardStepBase.cs
- FrameworkTextComposition.cs
- ConfigErrorGlyph.cs
- RangeContentEnumerator.cs
- MemoryResponseElement.cs
- CompilerErrorCollection.cs
- ResourceManagerWrapper.cs
- ConstructorNeedsTagAttribute.cs
- XmlAnyElementAttributes.cs
- ControlBindingsCollection.cs
- DataGridViewTextBoxEditingControl.cs
- MethodCallConverter.cs
- PackageStore.cs
- CodeSubDirectoriesCollection.cs
- XmlSchemaSimpleTypeList.cs
- ResourceExpression.cs
- ReflectEventDescriptor.cs
- FormatVersion.cs
- TdsParser.cs
- RawStylusInput.cs
- ErrorFormatterPage.cs
- HandlerMappingMemo.cs
- ReadOnlyDataSourceView.cs
- VisualTreeUtils.cs
- BaseValidator.cs
- ZipIOCentralDirectoryBlock.cs
- InspectionWorker.cs