VisualBasic template for protobuf-net. Options: General: "help" - this page Additional serializer support: "xml" - enable explicit xml support (XmlSerializer) "datacontract" - enable data-contract support (DataContractSerializer; requires .NET 3.0) "binary" - enable binary support (BinaryFormatter; not supported on Silverlight) Other: "protoRpc" - enable proto-rpc client "observable" - change notification (observer pattern) support "preObservable" - pre-change notification (observer pattern) support (requires .NET 3.5) "partialMethods" - provide partial methods for changes (requires C# 3.0) "detectMissing" - provide *Specified properties to indicate whether fields are present "lightFramework" - omit additional attributes not included in CF/Silverlight "asynchronous" - emit asynchronous methods for use with WCF "clientProxy" - emit asynchronous client proxy class Invalid options: xml and data-contract serialization are mutually exclusive. ' Generated from ' Option: xml serialization ([XmlType]/[XmlElement]) enabled ' Option: data-contract serialization ([DataContract]/[DataMember]) enabled ' Option: binary serialization (ISerializable) enabled ' Option: observable (OnPropertyChanged) enabled ' Option: pre-observable (OnPropertyChanging) enabled ' Option: partial methods (On*Changing/On*Changed) enabled ' Option: missing-value detection (*Specified/ShouldSerialize*/Reset*) enabled ' Option: light framework (CF/Silverlight) enabled ' Option: proto-rpc enabled ' Generated from: Namespace End Namespace ' Note: requires additional types generated from: <Global.System.Serializable, Global.ProtoBuf.ProtoContract(Name:="")> _ <Global.System.Runtime.Serialization.DataContract(Name:="")> _ <Global.System.Serializable, Global.ProtoBuf.ProtoContract(Name:="")> _ <Global.System.Xml.Serialization.XmlType(TypeName:="")> _ <Global.System.Serializable, Global.ProtoBuf.ProtoContract(Name:="")> _ Public Partial Class implements Global.ProtoBuf.IExtensible, Global.System.Runtime.Serialization.ISerializable, Global.System.ComponentModel.INotifyPropertyChanged, Global.System.ComponentModel.INotifyPropertyChanging Public Sub New End Sub Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext) MyBase.New() Global.ProtoBuf.Serializer.Merge(info, Me) End Sub Sub GetObjectData(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext) implements Global.System.Runtime.Serialization.ISerializable.GetObjectData Global.ProtoBuf.Serializer.Serialize(info, Me) End Sub Public Event PropertyChanged As Global.System.ComponentModel.PropertyChangedEventHandler Implements Global.System.ComponentModel.INotifyPropertyChanged.PropertyChanged Protected Overridable Sub OnPropertyChanged(ByVal propertyName As String) RaiseEvent PropertyChanged(Me, New Global.System.ComponentModel.PropertyChangedEventArgs(propertyName)) End Sub Public Event PropertyChanging As Global.System.ComponentModel.PropertyChangingEventHandler Implements Global.System.ComponentModel.INotifyPropertyChanging.PropertyChanging Protected Overridable Sub OnPropertyChanging(ByVal propertyName As String) RaiseEvent PropertyChanging(Me, New Global.System.ComponentModel.PropertyChangingEventArgs(propertyName)) End Sub Private extensionObject As Global.ProtoBuf.IExtension Function GetExtensionObject(createIfMissing As Boolean) As Global.ProtoBuf.IExtension Implements Global.ProtoBuf.IExtensible.GetExtensionObject Return Global.ProtoBuf.Extensible.GetExtensionObject(extensionObject, createIfMissing) End Function End Class Public Enum End Enum = 0 FixedSize Group TwosComplement ZigZag Default struct struct struct struct struct struct struct struct struct class class struct struct struct struct struct struct none Field type not implemented: (.) double Double Single Long ULong Integer ULong UInteger Boolean String Byte() UInteger Integer Long Integer Long Field type not implemented: (.) "" . ' CType(, ) . . 0.0 0.0F 0L 0L 0 0L 0 False "" Nothing 0 0 0L 0 0L Nothing . Nothing Nullable(Of ) Private = Private = <Global.ProtoBuf.ProtoMember(, IsRequired:=False, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.ComponentModel.DefaultValue(CType(, ))> _ <Global.System.ComponentModel.DefaultValue(CType(, ))> _ <Global.System.Xml.Serialization.XmlElement("", Order:=)> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=False, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.ComponentModel.DefaultValue(CType(, ))> _ <Global.System.ComponentModel.DefaultValue(CType(, ))> _ <Global.System.Runtime.Serialization.DataMember(Name:="", Order:=, IsRequired:=False)> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=False, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.ComponentModel.DefaultValue(CType(, ))> _ <Global.System.ComponentModel.DefaultValue(CType(, ))> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=False, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.Runtime.Serialization.DataMember(Name:="", Order:=, IsRequired:=False)> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=False, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.Xml.Serialization.XmlElement("", Order:=)> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=False, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ Private <Global.ProtoBuf.ProtoMember(, IsRequired:=True, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.Runtime.Serialization.DataMember(Name:="", Order:=, IsRequired:=True)> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=True, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.Xml.Serialization.XmlElement("", Order:=)> _ <Global.ProtoBuf.ProtoMember(, IsRequired:=True, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ Public Property Public Property Get Return If Not Is Nothing Then Return Else Return End If Return End Get Set() Set() OnChanging(value) OnPropertyChanging("") = value OnPropertyChanged("") OnChanged() End Set End Property partial void OnChanging( value); partial void OnChanged(); <Global.System.Xml.Serialization.XmlIgnore> _ <Global.System.ComponentModel.Browsable(false)> _ Public Property Specified As Boolean Get Return .HasValue End Get Set (ByVal value As Boolean) If Not .HasValue Then If value = True then = Else If value = False then = Nothing End If End Set End Property Public Property Specified As Boolean Get Return IsNot Nothing End Get Set (ByVal value As Boolean) If Is Nothing Then If value = True then = Else If value = False then = Nothing End If End Set End Property Private Function ShouldSerialize() As Boolean Return Specified End Function Private Sub Reset() Specified = false End Sub Private ReadOnly as Global.System.Collections.Generic.List(Of ) = New Global.System.Collections.Generic.List(Of )() Private ReadOnly as Global.System.Collections.Generic.List(Of ) = New Global.System.Collections.Generic.List(Of )() <Global.ProtoBuf.ProtoMember(, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.Runtime.Serialization.DataMember(Name:="", Order:=, IsRequired:=False)> _ <Global.ProtoBuf.ProtoMember(, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ <Global.System.Xml.Serialization.XmlElement("", Order:=)> _ <Global.ProtoBuf.ProtoMember(, Name:="", DataFormat:=Global.ProtoBuf.DataFormat.)> _ Public ReadOnly Property As Global.System.Collections.Generic.List(Of ) Public ReadOnly Property As Global.System.Collections.Generic.List(Of ) Get Return End Get Set (value As Global.System.Collections.Generic.List(Of )) Set (value As Global.System.Collections.Generic.List(Of )) = value End Set End Property <Global.System.ServiceModel.ServiceContract(Name:="")> _ Public Interface I End Interface Public Class Client : Global.ProtoBuf.ServiceModel.RpcClient public Client() : base(typeof(I)) { } End Class <Global.System.ServiceModel.OperationContract(Name:="")> _ <Global.ProtoBuf.ServiceModel.ProtoBehavior()> _ ( request); <Global.System.ServiceModel.OperationContract(AsyncPattern:=True, Name:="")> _ Global.System.IAsyncResult Begin( request, Global.System.AsyncCallback callback, object state); End(Global.System.IAsyncResult ar); ( request) { return () Send("", request); } Public Class CompletedEventArgs : Global.System.ComponentModel.AsyncCompletedEventArgs private object[] results; public CompletedEventArgs(object[] results, Global.System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public Result { get { base.RaiseExceptionIfNecessary(); return ()(this.results[0]); } } End Class <Global.System.Diagnostics.DebuggerStepThroughAttribute()> _ public partial class Client : Global.System.ServiceModel.ClientBase<I>, I { public Client() {} public Client(string endpointConfigurationName) : base(endpointConfigurationName) {} public Client(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) {} public Client(string endpointConfigurationName, Global.System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) {} public Client(Global.System.ServiceModel.Channels.Binding binding, Global.System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) {} } private BeginOperationDelegate onBeginDelegate; private EndOperationDelegate onEndDelegate; private Global.System.Threading.SendOrPostCallback onCompletedDelegate; public event Global.System.EventHandler<CompletedEventArgs> Completed; public ( request) { return base.Channel.(request); } <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ public Global.System.IAsyncResult Begin( request, Global.System.AsyncCallback callback, object asyncState) { return base.Channel.Begin(request, callback, asyncState); } <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ public End(Global.System.IAsyncResult result) { return base.Channel.End(result); } private Global.System.IAsyncResult OnBegin(object[] inValues, Global.System.AsyncCallback callback, object asyncState) { request = (()(inValues[0])); return this.Begin(request, callback, asyncState); } private object[] OnEnd(Global.System.IAsyncResult result) { retVal = this.End(result); return new object[] { retVal}; } private void OnCompleted(object state) { if ((this.Completed != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.Completed(this, new CompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); } } public void Async( request) { this.Async(request, null); } public void Async( request, object userState) { if ((this.onBeginDelegate == null)) { this.onBeginDelegate = new BeginOperationDelegate(this.OnBegin); } if ((this.onEndDelegate == null)) { this.onEndDelegate = new EndOperationDelegate(this.OnEnd); } if ((this.onCompletedDelegate == null)) { this.onCompletedDelegate = new Global.System.Threading.SendOrPostCallback(this.OnCompleted); } base.InvokeAsync(this.onBeginDelegate, new object[] { request}, this.onEndDelegate, this.onCompletedDelegate, userState); } [] |AddHandler|AddressOf|Alias|And|AndAlso|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|CBool|CByte|CChar|CDate|CDec|CDbl|Char|CInt|Class|CLng|CObj|Const|Continue|CSByte|CShort|CSng|CStr|CType|CUInt|CULng|CUShort|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else|ElseIf|End|EndIf|Enum|Erase|Error|Event|Exit|False|Finally|For|Friend|Function|Get|GetType|GetXMLNamespace|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|Narrowing|New|Next|Not|Nothing|NotInheritable|NotOverridable|Object|Of|On|Operator|Option|Optional|Or|OrElse|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|REM|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|Short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|True|Try|TryCast|TypeOf|Variant|Wend|UInteger|ULong|UShort|Using|When|While|Widening|With|WithEvents|WriteOnly|Xor|