MagnusArias

SBO | Biblioteka klas - strona C#

Oct 26th, 2019
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System.Data.SqlTypes;
  2. public class Wynik
  3. {
  4.     [Microsoft.SqlServer.Server.SqlFunction]
  5.     public static double? Reszta(double? a, double? b)
  6.     {
  7.         return b == 0 ? null : a % b;
  8.     }
  9.  
  10.     [Microsoft.SqlServer.Server.SqlProcedure]
  11.     public static void ResztaProc(double? a, double? b, ref double? _c)
  12.     {
  13.          _c = b == 0 ? null : a % b;
  14.     }
  15.  
  16.     [Microsoft.SqlServer.Server.SqlFunction]
  17.     public static int? LiczZnaki(SqlString path)
  18.     {
  19.         return path.IsNull ? null : (int?)path.ToString().Length;
  20.     }
  21. }
Add Comment
Please, Sign In to add comment