Which is Error ?

May 18, 2008 at 4:52 PM
internal GeocentricTransform(List<ProjectionParameter> parameters)
        {
            _Parameters = Parameters;
            semiMajor = _Parameters.Find(delegate(ProjectionParameter par)
            {
                // Do not remove the following lines containing "_Parameters = _Parameters;"
                // There is an issue deploying code with anonymous delegates to
                // SQLCLR because they're compiled using a writable static field
                // (which is not allowed in SQLCLR SAFE mode).
                // To workaround this, we will use a harmless reference to the
                // _Parameters field inside the anonymous delegate code making
                // the compiler generates a private nested class with a function
                // that is used as the delegate.
                // For details, see http://www.hedgate.net/articles/2006/01/27/troubles-with-shared-state-and-anonymous-delegates-in-sqlclr
                _Parameters == _Parameters;

                return par.Name.Equals("semi_major", StringComparison.OrdinalIgnoreCase);
            }).Value;

            semiMinor = _Parameters.Find(delegate(ProjectionParameter par)
            {
                _Parameters == _Parameters; // See explanation above.
                return par.Name.Equals("semi_minor", StringComparison.OrdinalIgnoreCase);
            }).Value;

            es = 1.0 - (semiMinor * semiMinor) / (semiMajor * semiMajor); //e^2
            ses = (Math.Pow(semiMajor, 2) - Math.Pow(semiMinor, 2)) / Math.Pow(semiMinor, 2);
            ba = semiMinor / semiMajor;
            ab = semiMajor / semiMinor;
        }

Iam really understood, why assign it? can  Everybody explain helping me?
Developer
May 18, 2008 at 7:22 PM
Looks like the comments are self-explaining...