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
- WindowsNonControl.cs
- AnnotationAdorner.cs
- MemberHolder.cs
- MessageQueueKey.cs
- PropertySegmentSerializer.cs
- UpdatableGenericsFeature.cs
- CounterCreationDataCollection.cs
- HtmlForm.cs
- SupportedAddressingMode.cs
- TableLayoutPanelCellPosition.cs
- ToolStripComboBox.cs
- CalendarDay.cs
- ContextStack.cs
- TimeSpanValidator.cs
- DrawingServices.cs
- Process.cs
- ContentDisposition.cs
- DesignerActionGlyph.cs
- Input.cs
- HtmlElementErrorEventArgs.cs
- Freezable.cs
- IdentityVerifier.cs
- Rethrow.cs
- HandlerFactoryCache.cs
- ParenExpr.cs
- JsonServiceDocumentSerializer.cs
- PropertyConverter.cs
- RecognizerBase.cs
- RuleSettings.cs
- RequestBringIntoViewEventArgs.cs
- Graph.cs
- TimeSpan.cs
- SpanIndex.cs
- ExtensionMethods.cs
- OrderablePartitioner.cs
- ToolStripManager.cs
- PreviewPageInfo.cs
- ValidationSummary.cs
- SocketCache.cs
- DateTimeHelper.cs
- DataTableClearEvent.cs
- GACMembershipCondition.cs
- BinaryObjectInfo.cs
- ConstructorNeedsTagAttribute.cs
- ResourceManager.cs
- ContentPropertyAttribute.cs
- DateTimeEditor.cs
- MessageSecurityOverHttp.cs
- IndependentlyAnimatedPropertyMetadata.cs
- UpdatePanelControlTrigger.cs
- NativeCompoundFileAPIs.cs
- HttpRuntimeSection.cs
- xmlfixedPageInfo.cs
- XmlIterators.cs
- Authorization.cs
- MenuItem.cs
- GenericAuthenticationEventArgs.cs
- SerializableTypeCodeDomSerializer.cs
- OdbcParameter.cs
- SelectionProviderWrapper.cs
- VariableExpressionConverter.cs
- InfoCardBaseException.cs
- AssemblyHash.cs
- PageHandlerFactory.cs
- MetadataArtifactLoaderCompositeFile.cs
- _Rfc2616CacheValidators.cs
- ScriptServiceAttribute.cs
- ImpersonationContext.cs
- ServiceOperationListItem.cs
- LocalBuilder.cs
- AppModelKnownContentFactory.cs
- SchemaNamespaceManager.cs
- PointLightBase.cs
- OutOfProcStateClientManager.cs
- ErrorView.xaml.cs
- SystemIcons.cs
- PerformanceCounter.cs
- AttributeData.cs
- SHA512Cng.cs
- SqlDataSourceView.cs
- MatrixTransform.cs
- _HeaderInfoTable.cs
- HMACRIPEMD160.cs
- SignatureResourceHelper.cs
- ConstraintStruct.cs
- StructuredTypeInfo.cs
- SHA1Managed.cs
- ResourceIDHelper.cs
- TypeSystem.cs
- FormViewCommandEventArgs.cs
- SQLBoolean.cs
- DeviceContexts.cs
- PageAdapter.cs
- InputLanguageManager.cs
- DrawToolTipEventArgs.cs
- ValueTable.cs
- XmlUtil.cs
- SurrogateSelector.cs
- VisualStateGroup.cs
- XmlLinkedNode.cs