System.Security.Permissions.ResourcePermissionBase.MergeContents C# (CSharp) Method

MergeContents() private method

private MergeContents ( object content1, object content2 ) : object
content1 object
content2 object
return object
        private object MergeContents( object content1, object content2) {
            if (content1 == null) {            
                if( content2 == null) {
                    return null;
                }
                else {
                    return content2;
                }
            }
            else {
                if( content2 == null) {
                    return content1;
                }
                else {
                    return UnionOfContents(content1, content2);
                }
            }
        }