public static RowOrganizedPackage SetVersion(this RowOrganizedPackage @this) { var assemName = new AssemblyName(typeof(Package).AssemblyQualifiedName.Replace(typeof(Package).FullName + ", ", "")); @this.Version = assemName.Version.ToString(2); return(@this); }
public static RowOrganizedPackage SetVersion(this RowOrganizedPackage @this) { var regex = new Regex(@"\d+\.\d+"); @this.Version = regex.Match(Constants.CurrentVersion).Value; return(@this); }
private IMessage Package() { var tableId = "exampleTable"; var p = new RowOrganizedPackage { Tables = { { tableId, new RowOrganizedPackage.Types.Table() } } }; return(p.SetVersion()); }
public static RowOrganizedPackage SetVersion(this RowOrganizedPackage @this) { @this.Version = "2.0"; return(@this); }