Advertisement
uniblab

Untitled

Jun 28th, 2018
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. private System.String ExpandWorkOrderVariables( System.String @string ) {
  2.     @string = @string.TrimToNull();
  3.     if ( System.String.IsNullOrEmpty( @string ) ) {
  4.         return null;
  5.     }
  6.     foreach ( var @var in ( this.Variables ?? new Variable[ 0 ] ) ) {
  7.         @string = @string.Replace( "%var:" + @var.Name + "%", @var.Value ?? System.String.Empty );
  8.     }
  9.     return @string;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement