ToString() публичный Метод

public ToString ( ) : string
Результат string
Пример #1
0
        public void MergeEventFunction(UnityApiEventFunction newFunction, Version apiVersion)
        {
            UpdateSupportedVersion(apiVersion);

            var newFunctionSig = newFunction.ToString();

            foreach (var eventFunction in myEventFunctions)
            {
                if (eventFunction.ToString() == newFunctionSig)
                {
                    // Prefer an existing documented function that covers this version, than an undocumented one. This
                    // means we will automatically replace our undocumented functions with documented versions without
                    // having to explicitly add an end version
                    if (newFunction.IsUndocumented && !eventFunction.IsUndocumented &&
                        eventFunction.MinimumVersion <= apiVersion && eventFunction.MaximumVersion >= apiVersion)
                    {
                        return;
                    }

                    // If the documented state of both functions is the same, update the function
                    if (newFunction.IsUndocumented == eventFunction.IsUndocumented)
                    {
                        eventFunction.Update(newFunction, apiVersion);
                        return;
                    }
                }
            }

            // Not a match. We either haven't found this function before,
            // or a parameter or return type is different
            myEventFunctions.Add(newFunction);
        }
Пример #2
0
        public void MergeEventFunction(UnityApiEventFunction newFunction, Version apiVersion)
        {
            UpdateSupportedVersion(apiVersion);

            var newFunctionSig = newFunction.ToString();

            foreach (var eventFunction in myEventFunctions)
            {
                // If the signature matches, we've already got it, just
                // make sure it's up to date (newer docs take precedence
                // for e.g. param names, description, etc)
                if (eventFunction.ToString() == newFunctionSig)
                {
                    eventFunction.Update(newFunction, apiVersion);
                    return;
                }
            }

            // Not a match. We either haven't found this function before,
            // or a parameter or return type is different
            myEventFunctions.Add(newFunction);
        }
Пример #3
0
        public void MergeEventFunction(UnityApiEventFunction newFunction, Version apiVersion)
        {
            UpdateSupportedVersion(apiVersion);

            var newFunctionSig = newFunction.ToString();
            foreach (var eventFunction in myEventFunctions)
            {
                // If the signature matches, we've already got it, just
                // make sure it's up to date (newer docs take precedence
                // for e.g. param names, description, etc)
                if (eventFunction.ToString() == newFunctionSig)
                {
                    eventFunction.Update(newFunction, apiVersion);
                    return;
                }
            }

            // Not a match. We either haven't found this function before,
            // or a parameter or return type is different
            myEventFunctions.Add(newFunction);
        }