c# - Is SqlGeometry.STUnion method thread safe? -
is sqlgeometry.stunion method thread safe in .net? msdn
decompiled body sql 11.0 assembly using justdecompile:
[sqlmethod(isdeterministic=true, isprecise=false)] public sqlgeometry stunion(sqlgeometry other) { if (this.isnull || other == null || other.isnull || this.srid != other.srid) { return sqlgeometry.null; } this.throwifinvalid(); other.throwifinvalid(); return sqlgeometry.construct(glnativemethods.union(this.geodata, other.geodata), this.srid); }
where sqlgeography.construct
, glnativemethods.geodeticunion
static methods, while others can't deadlocked anywhere. none of methods used modifying calling object, yes - it's thread safe.
Comments
Post a Comment